-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeConfigParserTask fails in .NET framework MSBuild #55277
Comments
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsDescriptionThis would inside VS Windows, but you can repro by doing:
Fails with:
This works fine if you use Configuration
Regression?I'm not sure if .NET framework MSBuild worked before or not. Other informationHere is are /cc @steveisok
|
@steveisok this looks more like mono infra, rather than libraries infra? |
@akoeplinger Can you please look into this? |
On .NET Framework, S.R.M should come from nuget. https://www.nuget.org/packages/System.Reflection.Metadata/5.0.0 That said, another way to fix this is to stop using BlobBuilder for writing length-prefixed UTF8 strings. runtime/src/tasks/RuntimeConfigParser/RuntimeConfigParser.cs Lines 98 to 103 in e544ccf
The tricky bit is that the length uses the ECMA value-based compression (values < 255 take 1 byte, otherwise 2 bytes or 4 bytes) which we'd need to re-implement ourselves. But it should be simple. |
…etadata to RuntimeConfigParser task (#56216) * Add explicit dep on SRM to MonoTargets. Closes: #55277 * Guard dependency so it's not there on net6 * Changes suggested by @steveisok Co-authored-by: Jo Shields <joshield@microsoft.com>
Description
This would fail inside VS Windows, but you can repro by doing:
dotnet new android
"C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\MSBuild.exe" -restore
or
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\MSBuild.exe" -restore
Fails with:
This works fine if you use
dotnet build
instead of using .NET framework.Configuration
Regression?
I'm not sure if .NET framework MSBuild worked before or not.
Other information
Here is are
.binlog
files usingMSBuild.exe
from VS 2022 and VS 2019:logs.zip
/cc @steveisok
The text was updated successfully, but these errors were encountered: