Where is the wcp\tools\KnownTypes\KnownTypesInitializer.cs code
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
I find the comment in src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs
```
// Description:
// Definition of known types in PresentationFramework.dll and
// PresentationCore.dll and WindowsBase.dll
//
// THIS FILE HAS BEEN AUTOMATICALLY GENERATED.
// (See generator code in wcp\tools\KnownTypes\KnownTypesInitializer.cs)
//
// If you are REMOVING or RENAMING an EXISTING TYPE, then a build error has sent
// you here because this file no longer compiles.
// The MINIMAL REQUIRED steps are:
// you have renamed or removed in Framework, Core or Base
// 2) Update BamlWriterVersion in BamlVersionHeader.cs, incrementing the second number
// 3) Build the WCP compiler. To do that; (on FRE) build from wcp\build.
// When it tells you the WCP compiler has changed, install it in the root
// To do that: cd \nt\tools and run UpdateWcpCompiler.
// (Don't forget to check in this compiler updates with your WCP changes)
// 4) Build from wcp. (FRE or CHK) Make certain that wcp builds cleanly.
// 5) Don't forget to check in compiler updates in the root Tools directory
// Note: There is no need to regenerate from the tool in this case.
//
// IF you are ADDING NEW TYPES, or you want the new name of a RENAMED TYPE to showup:
// The OPTIONAL or ADDITIONAL steps (to use perf optimization for your type) are:
// 1) Build the dll(s) that define the new types
// 2) Update BamlWriterVersion in BamlVersionHeader.cs, incrementing the second number
// 3) (On FRE build) Run wcp\tools\buildscripts\UpdateKnownTypes.cmd
// Or more directly you can run: KnownTypesInitializer.exe
// Note: You may see other new types that have been have added since the last time
// this file was generated.
// 4) Build the WCP compiler. To do that; (on FRE) build from wcp\build.
// When it tells you the WCP compiler has changed, install it in the root
// To do that: cd \nt\tools and run UpdateWcpCompiler.
// (Don't forget to check in this compiler updates with your WCP changes)
// 5) (FRE or CHK) Rebuild everything under wcp to pick up the KnownTypes changes
// 6) Don't forget to check in compiler updates in the root Tools directory
//
// This file is shared by PresentationFramework.dll and PresentaionBuildTasks.dll.
//
// The code marked with #if PBTCOMPILER is compiled into PresentationBuildTasks.dll.
// The code marked with #if !PBTCOMPILER is compiled into PresenationFramework.dll
// The code without #if flag will be compiled into both dlls.
//
```
But I can not find the wcp\tools\KnownTypes\KnownTypesInitializer.cs file and the wcp\tools\buildscripts\UpdateKnownTypes.cmd file.
Thank you.
Contributor guide
Assessment
This issue has not been assessed yet.