Open Tyfyter opened 6 years ago
@Tyfyter Do you still have the .NET 4.5.2 SDK installed? It sounds like you might have uninstalled it along with VS.
I ask based on this part of your log:
he reference assemblies for framework ".NETFramework,Version=v4.5.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
@rchande I recently reinstalled it for an unrelated reason, however, visual studio code is still not loading the .csproj file properly. I may have installed a severely outdated version, as the only versions in the sdk folder are 2.1.3, and NuGetFallbackFolder, but for some reason when I tried to install .net 4.5.2 it said I already have it or a later version installed, and when checking my registry to verify this I saw that I seem to have .net version 4.7.02558 installed, how would I update the files to work with this?
at this point I am entirely unsure of what .net version I have installed as the registry both says 4.7.02558 and 461310, but there are no folders for either of those or 4.7.1 while there is a folder for version 4.0.30319.
I may have found the problem (which seems to be that my csproj file is set up for .net 4.5.2 but I have .net 4.7.1 installed), however, everything I've tried so far to fix it has failed:
Hey, according to registers (using the net-version tool) I have .NET 4.7.1 installed. My project is aimed for .NET 4.6. I get the same output as @Tyfyter. When I did change following change:
- <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
I get the same error for v4.7.1
. Is it a problem with detecting the latest .NET version yet?
You'll want to install the developer pack for the target framework your project uses: https://github.com/dotnet/docs/blob/master/docs/framework/install/guide-for-developers.md.
These contain the necessary reference assemblies to handle your project.
Environment data
dotnet --info
output:VS Code version:1.19 C# Extension version: current version as of 5:33 PM EST 1/7/2018
Steps to Reproduce: Unknown.
The omnisharp log contained this: