You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a compilation object for unit testing given string-based source code, we get the following error:
Collection: [(12,18): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'., (12,18): error CS0012: The type 'Type' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'., (7,18): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
This (hopefully) fixes the hang for spinquic (#37 ) on shutdown. The TempDir variable was referencing previous stack memory which was now invalid. This change allocates the memory with the config params.
* Stop fighting the coreclr build system, it enforces platform specific output. Instead adapt the projects in such a way that VS will always build it as x64.
For now hardcoded the fact that it runs on x64 - everywhere.
* Add missing project ref
Overview:
When creating a compilation object for unit testing given string-based source code, we get the following error:
Collection: [(12,18): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'., (12,18): error CS0012: The type 'Type' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'., (7,18): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.]
Current workaround can be seen here (by explicitly including system.runtime and loading its assembly):
https://github.com/dotnet/runtimelab/blob/JsonCodeGen/src/libraries/System.Text.Json/System.Text.Json.SourceGeneration.UnitTests/CompilationHelper.cs#L31
Repro:
Comment out the workaround line and run unit tests for System.Text.Json.SourceGeneration.UnitTests
The text was updated successfully, but these errors were encountered: