When compiling any of the modelling projects in VS2017 RC3, the compilation fails because it tries to use Microsoft.CodeAnalysis 2.0.0.0. However only 1.3.2 is installed with RC3.
There is a NuGet prerelease 2.0.0.0 of Microsoft.CodeAnalysis, but installing this does not help.
Is there a way to install the code analysis 2.0.0.0 in VS to get around this problem?
The problem is fixed in the latest update to VS 2017 RC
Related
A Windows update trashed my computer so I've had to reinstall from scratch.
We have some projects that multi-target net40
<TargetFrameworks>net40;net6.0</TargetFrameworks>
which were building just fine (and they build in the Azure pipeline) but now I can't get them to build locally.
My old machine was originally win10 with VisualStudio 2017, 2019, and 2022, but so far on the rebuilt machine I only have 2022.
The projects won't build, saying
error MSB3644: The reference assemblies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
I guess this means I have to install an SDK pack?
I've tried 4.6.2 and 4.6.1 which are available through the VisualStudio installer, and 4.5 (NDP452-KB2901951-x86-x64-DevPack.exe from https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net452-developer-pack-offline-installer) which is not, and Windows SDK for Windows 7 and .NET Framework 4 from https://developer.microsoft.com/en-gb/windows/downloads/sdk-archive/
but still no joy.
Any idea what I need to do to get it to build again?
The solution seems to be to install VisualStudio2017 with net40.
Trying to compile Python Django project but receiving build error:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(1217,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
Done building project "myFinancialTracker.pyproj" -- FAILED.
How can I resolve?
I also got the same error as you, this is because VS 2022 doesn't come with
.net framework 4.0 option during installation, to overcome this problem I install VS 2019 and enable the usage of .net-framework 4.0 during installation. After the installation, I tried to run my project again using VS2022 and the error goes away.
I tried to download and install .net-framework 4.0 separately but Microsoft doesn't allow me to do so, to overcome this, I install VS2019 instead.
Using the latest Visual Studio 2019 version, a brand new project will not build:
fatal error LNK1104: cannot open file 'MSCOREE.lib'
I have tried to re-install Visual Studio but that didn't change anything unfortunately.
These components have been selected by the installer but apparently it's not enough:
MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.24)
Windows 10 SDK (10.0.18362.0)
C++/CLI support for v142 build tools (14.24)
Question:
Are there any tricks to get CLR Class Library (.NET Framework) projects to build ?
Here is the solution:
Apparently, no matter what framework version you will target, the $(NETFXKitsDir)Lib\um\x86 macro will always point to C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\lib\um\x86.
Now here's the problem, even though you install 4.7.2 SDK in Visual Studio Installer, this file is nowhere to be seen.
But if you download .NET Framework 4.7.2 Developer Pack Offline Installer and press the Repair button, it gets correctly installed and a brand new project will build succesfully.
Alternatively:
Re-installing VS also fixes the issue ...
I have Visual Studio 2015. I also have installed MSBuild Tools 2015. The following code gives me exception when I update Microsoft.CodeAnalysis to 2.2.0
var workspace=MSBuildWorkspace.Create();
You need to add the MSBuild libraries to your project (Microsoft.Build, Microsoft.Build.Utilities.Core etc) from Nuget (for example).
I think, that a better solution is a work with the Roslyn 2.2.0 libraries in Visual Studio 2017.
I have Windows 8 and Microsoft Visual Studio Express 2012 for Windows Phone installed in WMWare virtual PC.
For some time ago I have downloaded WindowsPhonePowerTools (Click once application). It has been running well.
The VS Express 2012 has been notifying me that there are some updates available. Last Tuesday I installed the updates. VS Express runs well, but WindowsPhonePowerTools doesn't anymore.
It says: Unable to install or run the application. The application requires that assembly Microsoft.Web.Infrastructure Version 1.0.0.0 be installed in the Global Assembly Cache (GAc) first.
I searched the web to find a way to have a look in GAC. The guides are for Windows 7, for. example
How can I have a look in GAC in Windows 8? How can I install Microsoft.Web.Infrastructure Version 1.0.0.0 in GAC?
I have just downloaded the latest version of the WindowsPhonePowerTools but the problem still exists.
Thanks if anyone can help me.