-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unable to build old projects with VS2019 - MSB4019 #4786
Comments
If you scroll all the way down below Snapshot Debugging on the VS 2019 release notes (or just search for PCL on the page). You will see:
Here is the item in the installer you will need to check for things to work |
That solved the issue. |
Hi C:\Program Files\dotnet\sdk\5.0.100\Current\SolutionFile\ImportAfter\Microsoft.NET.Sdk.Solution.targets(14,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\3.1.403\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.Common.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files\dotnet\sdk\3.1.403\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.Common.targets" is correct, and that the file exists on disk same issue with msbuild XXX.sln error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found. dotnet msbuild version: Thanks in advance |
I'm seeing the same behavior. w/ .NET Portable Library targeting pack already installed. |
Same issue here, .NET Portable Library targeting pack already installed. Anyone got solution? |
I migrated the old .net4.x project causing the issue to netstandard (or net5) and it works now |
Same issue: Solution has libs which target netstandard2.0 and all executables target net5.0 |
Steps to reproduce
Hello
I'm trying to get the odata.net repo to build on VS2019.
I've updated the build.ps1 file (weitzhandler/odata.net@3dbccef) with the appropriate paths and all, but I'm still getting the following error x5:
After checking, the
Portable
folder is completely missing.I only have 2019 installed on my machine.
Is there anyway I can get this to run on a VS-only machine while still maintain project backwards compatibility (so that it can still build in older versions of VS)?
Expected behavior
File build.ps1 should execute properly
Actual behavior
Old build paths not found
Environment data
msbuild /version
output:OS info:
Windows 10x64 (1903 - build 18362.356)
VS 2019 (16.2.x)
The text was updated successfully, but these errors were encountered: