i have .sln solution of multiple projects, .net framework 4.6, nothing .net core. i've added new web project using asp.net core, still targeting .net framework 4.6. powershell-based build script includes nuget package restore called this:
nuget.exe restore $solutionfile -noninteractive
this fails following message:
msbuild auto-detection: using msbuild version '14.0' 'c:\program files (x86)\msbuild\14.0\bin'. c:\gitlabci\builds\024ca24f\0\team\myteam\src\myweb\myweb.xproj(7,3): error msb4019: das importierte projekt "c:\program files (x86)\msbuild\microsoft\visualstudio\v14.0\dotnet\microsoft.dotnet.props" wurde nicht gefunden. vergewissern sie sich, dass der pfad in der -deklaration korrekt und die datei auf dem datenträger vorhanden ist. system.management.automation.remoteexception
a support file of msbuild seems missing. can't install asp.net core tools because insist on requiring full visual studio 2015 ide installed on build server insane , don't want that. else can installed minimal footprint, build tools , framework.
if leave out nuget package restore, build fails because assemblies missing, obviously.
how can install msbuild support asp.net core 1.0 rtm without full vs ide?
update: copied 2 directories dotnet
, dotnet.web
c:\program files (x86)\msbuild\visualstudio\v14.0 build server machine. nuget package restore worked then, build fails following message number of projects:
c:\gitlabci\builds\024ca24f\0\team\myteam\src\common\common.csproj : error msb4057: das ziel "_generatedependencyfragmentjson" ist im projekt nicht vorhanden.
roughly translates "the target '_generatedependencyfragmentjson' not exist in project." google not know word.
i aware blindly copying files 1 machine not thing do, , didn't expect work. @ least produces later error messages.
while may not answer original question, (unpleasant) answer problem.
install full visual studio 2015 on build server (agent). comes that's required deal these projects, on development machine. requires 9 gb of disk space , separate licence, hey, said convenient.
Comments
Post a Comment