mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-08 23:43:29 +02:00
Links: .NET Desktop - net (#107)
* Links: .NET Desktop - net * Update dotnet-desktop-guide/net/wpf/index.yml * Update dotnet-desktop-guide/net/wpf/toc.yml Co-authored-by: Andy De George <[email protected]>
This commit is contained in:
co-authored by
Andy De George
parent
25480ff846
commit
c1d6e1d23e
@@ -213,10 +213,10 @@ If you have many source files that would need to be excluded this way, you can d
|
||||
|
||||
### A brief aside on multi-pass compilers
|
||||
|
||||
After removing the offending file from the Bean Trader sample, you can re-build and will get four errors. Didn't you have one before? Why did the number of errors go up? The C# compiler is a [multi-pass compiler](https://docs.microsoft.com/archive/blogs/ericlippert/how-many-passes). This means that it goes through each source file twice. First, the compiler just looks at metadata and declarations in each source file and identifies any declaration-level problems. Those are the errors you've fixed. Then it goes through the code again to build the C# source into IL; those are the second set of errors that you're seeing now.
|
||||
After removing the offending file from the Bean Trader sample, you can re-build and will get four errors. Didn't you have one before? Why did the number of errors go up? The C# compiler is a [multi-pass compiler](/archive/blogs/ericlippert/how-many-passes). This means that it goes through each source file twice. First, the compiler just looks at metadata and declarations in each source file and identifies any declaration-level problems. Those are the errors you've fixed. Then it goes through the code again to build the C# source into IL; those are the second set of errors that you're seeing now.
|
||||
|
||||
> [!NOTE]
|
||||
> The C# compiler does [more than just two passes](https://docs.microsoft.com/archive/blogs/ericlippert/how-many-passes), but the end result is that compiler errors for large code changes like this tend to come in two waves.
|
||||
> The C# compiler does [more than just two passes](/archive/blogs/ericlippert/how-many-passes), but the end result is that compiler errors for large code changes like this tend to come in two waves.
|
||||
|
||||
### Third-party dependency fixes (Castle.Windsor)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user