Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Why can't I develop in VS 2015 and deploy to Linux.

$
0
0

Hi, I built a small web api application in VS 2015, and tried to run it on Ubuntu but I get the error

error MSB4019: The imported project "/usr/share/dotnet/sdk/1.0.0-preview4-004233/Microsoft/VisualStudio/v14.0/DotNet/Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

The path doesn't exist, because Visual Studio and the .NET Core Tools are not installed there - but you can't install them on Linux of course.

My xproj has

<PropertyGroup><VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion><VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath></PropertyGroup><Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />


Which is where it's coming from - but I can't remove it because it won't build either.

Am I going about this all wrong?  I don't want to actually create the web app on Linux, just deploy it there.  Also the Linux is headless so I can't install VS Code.

Thanks!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>