dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.71k stars 1.07k forks source link

Problems to load project because of C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Microsoft.NET.Build.Extensions.NETFramework.targets #2871

Open marcelopinheiro-bpp opened 5 years ago

marcelopinheiro-bpp commented 5 years ago

When loading a Project inside my solution, I was receiving errors of files not found in the "ImportAfter" Directory (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Microsoft.Common.Targets\ImportAfter).

So I added manually the files

Because they didn't came together the Visual Studio Community installation.

After that, a received this error (The error is in PT-BR):

Houve uma tentativa de comparação numérica em "$(_TargetFrameworkVersionWithoutV)", que é avaliada como "" em vez de um número, na condição "'$(ImplicitlyExpandNETStandardFacades)' == '' AND '$(_TargetFrameworkVersionWithoutV)' >= '4.6.1'".  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Microsoft.Common.targets\ImportAfter\Microsoft.NET.Build.Extensions.NETFramework.targets

I don't know what to modify or what to do now. Thanks for the attention

livarcocc commented 5 years ago

Can you share a repro project with us? Maybe in a github repo? You should not have to add any of those files manually.

Also, what version of VS are you using and what version of the .NET Core SDK?

vrushalivartak commented 1 year ago

This was reported almost 5 years back, is this still an issue? Also there isn't enough information to do further analysis. @livarcocc I guess this can be closed.