-
Notifications
You must be signed in to change notification settings - Fork 1.4k
MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Sdks\Microsoft.NET.Sdk.Web\Sdk\Sdk.props" was not found #2163
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
Comments
To build a .NET Core project (using the new, more compact XML), you must use MSBuild 15 or higher. This is the error you get when using an older MSBuild, and I see that you're specifying You'll need to select whatever Bamboo calls MSBuild v15 (or Visual Studio 2017). |
@rainersigwald, I installed MSBuild 15.0 on my Bamboo server, however now I am running with following error:
NOTE: If I run MsBuild thru my command line on my local machine, solution builds properly without error. Following is my one of BuinessLibrary.csproj file:
WebApi.csproj
|
@avikenjale How did you install MSBuild 15? To build SDK projects, you must install Visual Studio with the ".NET Core cross-platform development" workload selected. |
@rainersigwald , I followed these steps:
|
@avikenjale As of today, that won't work to build this type of project--see #1697 for details. |
@rainersigwald , so what is workaround for this? I need to get it done as need to provide WebAPI for testing. Let me know if any changes need to be done either at project level or build server level. |
@ravipal, any idea? |
@avikenjale Install Visual Studio 2017 (not Build Tools but the full VS) on your build server. |
@rainersigwald , you mean just installing msbuild tool 15.0 will not work? this is strange? then for my information, what is the purpose of msbuild 15.0 to install on build server? I mean, for which type of projects (.NET/ .NET Core) this - msbuild 15.0 will support? |
@avikenjale Correct. This is discussed in detail in the bug I linked you to #1697, and the right place to ask further clarifying questions is there. |
I have following scenario about this issue:
error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.
.I have following setting for MSBuild:

The text was updated successfully, but these errors were encountered: