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

nuget restore fails bcs Microsoft.CSharp.Core.targets was not found. #10132

Closed
rasoul-tiebreak opened this issue May 14, 2024 · 2 comments
Closed

Comments

@rasoul-tiebreak
Copy link

I just update visual studio 2022 to latest version and my pipeline in azure Devops fails due to this error
##[error]The nuget command failed with exit code(1) and error(C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\bin\Microsoft.CSharp.CurrentVersion.targets(317,5): error MSB4019: The imported project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\bin\Roslyn\Microsoft.CSharp.Core.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\bin\Roslyn\Microsoft.CSharp.Core.targets" is correct, and that the file exists on disk. [C:\xxxModules.Permission.PermissionManager.Module.csproj]

@rasoul-tiebreak
Copy link
Author

Microsoft.CSharp.Core.targets is found in another place C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\Roslyn, so seems the Roslyn path got wrong after update

@rasoul-tiebreak
Copy link
Author

wrong installation on my side

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

1 participant