Skip to content
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

Visual Studio "gold bar" pop up due to _MicrosoftSourceLinkCommonAssemblyFile #644

Closed
AArnott opened this issue Aug 20, 2020 · 5 comments
Closed

Comments

@AArnott
Copy link

AArnott commented Aug 20, 2020

While interacting with my solution, a "gold bar" will sometimes pop up across the top with this:

The project 'StreamJsonRpc' ran into a problem during the last operation: The result "" of evaluating the value "$(_MicrosoftSourceLinkCommonAssemblyFile)" of the "AssemblyFile" attribute in element is not valid. C:\Users\andarno.nuget\packages\microsoft.sourcelink.common\1.0.0\build\InitializeSourceControlInformation.targets You may need to reload the solution after fixing the problem.

image

@tmat
Copy link
Member

tmat commented Aug 20, 2020

@davkean Seems like bug in project system not loading props files correctly.

@davkean
Copy link
Member

davkean commented Aug 21, 2020

This is known. NuGet is writing a bunch of props/targets that we're reloading without coordination. We plan on fixing this by holding off reloading targets until restore has finished //cc @lifengl.

@davkean
Copy link
Member

davkean commented Aug 21, 2020

Basically being tracked by this: dotnet/project-system#4781.

@AArnott AArnott closed this as completed Aug 21, 2020
@tmat
Copy link
Member

tmat commented Aug 21, 2020

@davkean Thanks for the pointers.

@cheenamalhotra
Copy link
Member

cheenamalhotra commented Jul 13, 2021

Do microsoft.sourcelink.common and microsoft.sourcelink.github NuGet packages support .NET Standard 2.0?

We have been building for .NET Standard 2.0 which used to work fine, until we switched to proper multitargeted framework model. Now we're intermittently seeing below error when building for .NET Framework 4.8 using MSBuild commands:

##[error]E:\nuget\microsoft.sourcelink.common\1.0.0\build\InitializeSourceControlInformation.targets(3,81): Error MSB4022: The result "" of evaluating the value "$(_MicrosoftSourceLinkCommonAssemblyFile)" of the "AssemblyFile" attribute in element <UsingTask> is not valid.

Complete log: Build Log

After I removed using this package for .NET Standard targets, error seems suppressed, but too soon to conclude that since it's intermittent.

Just wondering why do these packages not expose a .NET Standard 2.0 compatible DLL?
Could that be the reason for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants