ErrorMSB3644 The reference assemblies for framework ".NETFramework,Version=v4.6.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. C:\RPR\Dev\Libraries\Common\Common.csproj C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 1111
I've tried installing the .NET Framework 4.6.2 SDK, as well as the 4.6 Targeting Pack, however both error that I already have it installed. I also tried installing Visual Studio 2017 but it still gives the same error.
Starting May, 2019 you can build your project on net20 up to net48 (including ne461) any machine with at least MSBuild or the .NET Core SDK installed without the need of Developer Pack installed.
I was using ubuntu and faced the same problem. Even after I've downloaded latest vscode and mono for ubuntu it was not working. Then I found this.
Basically if you've installed mono then go to settings and set
Check the installed .net framework on your development machine, it must be the same as project file targeting. You need to install the .net framework which the project file targeting after that try again the errors and warnings will disappear.
If you've recently installed Unity on Ubuntu 22 and intend to use VS Code for development, chances are you're reading this after you've tried a number of ways and none of them worked...
I followed the official guide and tried to build unreal engine from source code from github. However, when I tried to run the GenerateProjectFiles.bat, it throws the error:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targe ts(1217,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.6.2 were not found. To resolve this, i nstall the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can downloa d .NET Framework Developer Packs at [C:\Program Files\Unreal\UnrealEngine-4.25\En gine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
I doubt I made a mistake in env variable setting. I notice that System variable about .net is C:\Program Files\dotnet\, but in there the sdk folder only contains 5.0404 (C:\Program Files\dotnet\sdk\5.0.404)
@Yoann same issue here. Clean install of Windows Server 2019 latest build, install .NET Framework offline installer 4.8, reboot and boom. Many native control panels, like Server Manager, requesting some 4.0.... version of .NET framework instead, failing to load.
I had the same issue and received zero help or support from Microsoft. Dell support googled and read back to me everything I had googled and tried already. Importing the above registry information fixed it without a reboot.
@DavidSherrill This is the exact fix! For us, our RMM tool stopped working on a server 2019 standard server. It's services wouldn't start. Event Viewer complained about .net. Also server manager wouldn't open with the exact message you mentioned. Applying this fixed it all. thanks!!
YOU ARE AN ABSOLUTE LEGEND! THANK YOU! THIS IS THE ONLY SOLUTION THAT WORKED! Every other solution I've googled of this problem has been some variation of "turn net framework on/off in the "turn windows features on or off" app" or "reinstall the newest version of .net" or "did you try restarting your computer?" (OF COURSE I TRIED RESTARTING MY COMPUTER!! DO THEY THINK I'M AN INFANT??)
Please excuse my novice status displayed in this question, but does one simply copy/paste the text in your registry update file, and does the resulting text file require the line number entries as displayed in your post?
Hi, I'm getting too many warnings when running dotnet build, Please help me in solving these warnings. My projects were targeting to .net standard 1.0, now I am targeting to .net standard 2.0 with the same code.
c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Application\MyCompany.MyProject.Application.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.Dto\MyCompany.MyProject.Business.Dto.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.Data\MyCompany.MyProject.Business.Repositories.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.Services\MyCompany.MyProject.Business.Services.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Core\MyCompany.MyProject.Core.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.EntityFrameworkCore\MyCompany.MyProject.EntityFrameworkCore.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.MasterDataFiles\MyCompany.MyProject.Business.MasterDataFiles.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Processors.Core\MyCompany.MyProject.Processors.Core.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Processors\MyCompany.MyProject.Processors.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Processors\MyCompany.MyProject.Processors.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Web.Core\MyCompany.MyProject.Web.Core.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Web.Core\MyCompany.MyProject.Web.Core.csproj : warning NU1701: Package 'Abp.AspNetZeroCore.Web 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. [c:\Work\Source\MyProject\aspnet-core\MyCompany.MyProject.sln]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Core\MyCompany.MyProject.Core.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Core\MyCompany.MyProject.Core.csproj]c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Web.Core\MyCompany.MyProject.Web.Core.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Web.Core\MyCompany.MyProject.Web.Core.csproj : warning NU1701: Package 'Abp.AspNetZeroCore.Web 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Application\MyCompany.MyProject.Application.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.EntityFrameworkCore\MyCompany.MyProject.EntityFrameworkCore.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.MasterDataFiles\MyCompany.MyProject.Business.MasterDataFiles.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.Services\MyCompany.MyProject.Business.Services.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.Dto\MyCompany.MyProject.Business.Dto.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Processors.Core\MyCompany.MyProject.Processors.Core.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.Data\MyCompany.MyProject.Business.Repositories.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Processors\MyCompany.MyProject.Processors.csproj : warning NU1701: Package 'Abp.AspNetZeroCore 1.0.14' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Processors\MyCompany.MyProject.Processors.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.EntityFrameworkCore\MyCompany.MyProject.EntityFrameworkCore.csproj]C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Application\MyCompany.MyProject.Application.csproj]C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.Dto\MyCompany.MyProject.Business.Dto.csproj]C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.Data\MyCompany.MyProject.Business.Repositories.csproj]C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.MasterDataFiles\MyCompany.MyProject.Business.MasterDataFiles.csproj]C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Processors.Core\MyCompany.MyProject.Processors.Core.csproj]C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Business.Services\MyCompany.MyProject.Business.Services.csproj]C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Processors\MyCompany.MyProject.Processors.csproj]C:\Program Files\dotnet\sdk\2.1.2\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Web.Core\MyCompany.MyProject.Web.Core.csproj]C:\Users\mreddy.nuget\packages\microsoft.net.sdk.functions\1.0.7\build\netstandard1.0\Microsoft.NET.Sdk.Functions.Build.targets(32,5): warning : [c:\Work\Source\MyProject\aspnet-core\src\MyCompany.MyProject.Processors\MyCompany.MyProject.Processors.csproj]Tests\TestAppService_Tests.cs(148,27): warning xUnit1013: Public method 'Should_Create_TestPrice_With_Valid_Arguments' on test class 'TestAppService_Test' should be marked as a Fact. [c:\Work\Source\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\MyCompany.MyProject.Tests.csproj]36 Warning(s)0 Error(s)
3a8082e126