-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ResolvePackageAssets failed for Microsoft.DotNet.CoreMcg.1.0.0-prerelease-0005 #2503
Comments
We do expect there to be strictly more assets when you have a runtime identifier (RID) specified. Without a RID specified, the app is framework-dependent and will run using the installed .NET Core shared framework. If you want to carry the .NET Core runtime with your app, then you can specify the RID and by default it will be published as self-contained. So if a RID is specified we expect to have the additional assets that come from the .NET Core runtime. Can you provide a full repro project so we can better understand what you're trying to do? |
Note that win-arm was not supported by .net core 1.0 so the error is by design when setting this RID while targeting 1.0. Why are you setting this RID and targeting 1.0? |
Thanks for the help, your comment is helpful in resolving the problem, we have solved the problem. In a nutshell, I believe it is our build script that is confused about the package. The package we need to use is only a build time tool, but it passed in the RID of the environment where the built binaries will run. The code does confuse me though, when I investigate the build failure, it was unclear to me that the comparison isn't a bug, especially so in the case of ==. It would nice to add a comment (or more useful error message) on why are we comparing the count of libraries. |
* fixes dotnet/templating dotnet#2503 dotnet/templating dotnet#2014: - corrects error message when value provided for parameter is incorrect: it should show the input paramater as enterd by user and not canonical name - when when value provided for parameter is incorrect: do not show generic help and help for template, just error message
* fixes dotnet/templating dotnet#2503 dotnet/templating dotnet#2014: - corrects error message when value provided for parameter is incorrect: it should show the input paramater as enterd by user and not canonical name - when when value provided for parameter is incorrect: do not show generic help and help for template, just error message
The Nuget package in question is hosted on the https://dotnet.myget.org/gallery/dotnet-buildtools feed named Microsoft.DotNet.CoreMcg.
After Nuget restore, a file named project.assets.json is created. The ".NETCoreApp,Version=v1.0" node contains 111 children and so is the ".NETCoreApp,Version=v1.0/win-arm" node. The number of libraries is identical.
This tripped the condition in ResolvePackageAssets.cs:
Why must the _compileTimeTarget.Libraries.Count strictly less than _runtimeTarget.Libraries.Count, in particular, wouldn't the two numbers equal a fine thing as well?
The text was updated successfully, but these errors were encountered: