Cake build script fails in Azure Devops with mixed .NET core and framework solutionTeamCity Build with mixed (.Net Framework + .Net Core) projects solution - Is it possible?How to use VSTS to build a .NET solution that contains a .NET Standard project and a .NET 4.7 project?Package not found while building a mixed solution (.NET Framework and .NET Core) on TeamcityErrors in Azure DevOps build - are you missing an assembly reference?Azure DevOps project build returning with log4net errorBuild sqlproj on Azure DevOpsAssets file project.assets.json not found when running a build on Azure DevopsDevOps hosted pipeline fail to build .NET Core 2.2Nuget restore task is failing on Azure DevOps after upgrading all projects to .Net core 2.2Build only one project of a solution in Azure Devops
Billiard balls collision
Gambler coin problem: fair coin and two-headed coin
Prevent use of CNAME record for untrusted domain
Why should a self-financing strategy be previsible?
Evaluated vs. unevaluated Association
If the Shillelagh cantrip is applied to a club with non-standard damage dice, what is the resulting damage dice?
How to check whether a sublist exist in a huge database lists in a fast way?
How is linear momentum conserved in case of a freely falling body?
How do we tell which part of kinetic energy gives rise to temperature?
What is the loud noise of a helicopter when the rotors are not yet moving?
50-move rule: only the last 50 or any consecutive 50?
What are the occurences of total war in the Native Americans?
about to retire but not retired yet, employed but not working any more
Unlock your Lock
Papers on arXiv solving the same problem at the same time
What's special ammo?
Can I get a PhD for developing an educational software?
Joining lists with same elements
Are game port joystick button circuits more than plain switches? Is this one just faulty?
Is first Ubuntu user root?
Why is getting a PhD considered "financially irresponsible"?
When, exactly, does the Rogue Scout get to use their Skirmisher ability?
Why is "-ber" the suffix of the last four months of the year?
Given current technology, could TV display screens double as video camera sensors?
Cake build script fails in Azure Devops with mixed .NET core and framework solution
TeamCity Build with mixed (.Net Framework + .Net Core) projects solution - Is it possible?How to use VSTS to build a .NET solution that contains a .NET Standard project and a .NET 4.7 project?Package not found while building a mixed solution (.NET Framework and .NET Core) on TeamcityErrors in Azure DevOps build - are you missing an assembly reference?Azure DevOps project build returning with log4net errorBuild sqlproj on Azure DevOpsAssets file project.assets.json not found when running a build on Azure DevopsDevOps hosted pipeline fail to build .NET Core 2.2Nuget restore task is failing on Azure DevOps after upgrading all projects to .Net core 2.2Build only one project of a solution in Azure Devops
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a cake build script with my .NET server project which needs to be built on our new Azure DevOps pipeline. The script works locally but does not work on Azure DevOps. There are possible reasons for this which may be that I have a Unit Tests project (xUnit) built on .NET Core 2.1 while all the other projects in solution are .NET Framework 4.6.1 (we just added in the xUnit project which my only option was to add it in as a .NET Core project).
I wrote my cake script which works locally. It looks like this:
//Always lock down versions of tools so that we can ensure a tool works before upgrading instead of auto-upgrading.
#tool "nuget:?package=xunit.runner.console&version=2.4.1"
#tool "nuget:?package=ReportUnit&version=1.2.1"
var target = Argument("target", "Build");
var configuration = Argument("configuration", "Dev");
var solution = @".MyCompany.MyProduct.IntegrationLayer.sln";
var report = Directory(@".reports");
var xunitReport = report + Directory("xunit");
Task("Clean")
.Does(() =>
Information("Cleaning out directories 0 for 1...", configuration, solution);
CleanDirectories("./**/bin/" + configuration);
CleanDirectories("./**/obj/" + configuration);
);
Task("Restore")
.IsDependentOn("Clean")
.Does(() =>
//This can restore both .NET Core and Framework NuGet packages.
Information("Restoring Nuget packages for 0...", solution);
DotNetCoreRestore();
);
Task("Build")
.IsDependentOn("Restore")
.Does(() =>
//If we change all the projects and solution to .NET Core, then we will need to change this build call to DotNetCoreBuild().
//Because we have a mixed solution (unit tests are .NET Core and all other projects are .NET Framework), we need to still use MSBuild.
Information("Building solution 0 using the 1 configuration...", solution, configuration);
MSBuild(solution, new MSBuildSettings
Configuration = configuration
);
);
Task("UnitTests")
.IsDependentOn("Build")
.Does(() =>
Information("Unit testing solution 0 using the 1 configuration...", solution, configuration);
var projects = GetFiles("./UnitTests/*.csproj");
foreach(var project in projects)
DotNetCoreTest(
project.FullPath,
new DotNetCoreTestSettings()
Configuration = configuration,
NoBuild = true
);
);
Task("UnitTestsOnly")
.Does(() =>
Information("Unit testing solution 0 using the 1 configuration...", solution, configuration);
var projects = GetFiles("./UnitTests/*.csproj");
foreach(var project in projects)
DotNetCoreTest(
project.FullPath,
new DotNetCoreTestSettings()
Configuration = configuration,
NoBuild = true
);
);
RunTarget(target);
Now when I run this in Azure DevOps, I get 10 errors for each project similar to this example below:
"D:a1sPPILMyCompany.MyProduct.IntegrationLayer.sln" (Build target) (1) ->
"D:a1sPPILMC.MP.IL.DatabaseDataResetMC.MP.IL.DatabaseDataReset.csproj" (default target) (11) ->
D:a1sPPILMC.MP.IL.DatabaseDataResetMC.MP.IL.DatabaseDataReset.csproj(123,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..packagesMicrosoft.VisualStudio.SlowCheetah.3.1.66buildMicrosoft.VisualStudio.SlowCheetah.targets.
I am unsure of exactly the problem. It could be because we have a mixed project. It could be because the file structure. I don't know what options or settings I would need to set in the cake commands for build or restore. It could also be when I run this locally, I run it in the same folder as the Cake script, but it appears to be running in the root folder for my repo which is one folder up from the solution folder for this solution.
Where in my script am I going wrong? My restore step seems fine except it only restores the UnitTests project (which does depend on all other projects). Is it the restore? Is there a setting I am missing in the build or the restore? Thanks in advance.
.net .net-core
add a comment |
I have a cake build script with my .NET server project which needs to be built on our new Azure DevOps pipeline. The script works locally but does not work on Azure DevOps. There are possible reasons for this which may be that I have a Unit Tests project (xUnit) built on .NET Core 2.1 while all the other projects in solution are .NET Framework 4.6.1 (we just added in the xUnit project which my only option was to add it in as a .NET Core project).
I wrote my cake script which works locally. It looks like this:
//Always lock down versions of tools so that we can ensure a tool works before upgrading instead of auto-upgrading.
#tool "nuget:?package=xunit.runner.console&version=2.4.1"
#tool "nuget:?package=ReportUnit&version=1.2.1"
var target = Argument("target", "Build");
var configuration = Argument("configuration", "Dev");
var solution = @".MyCompany.MyProduct.IntegrationLayer.sln";
var report = Directory(@".reports");
var xunitReport = report + Directory("xunit");
Task("Clean")
.Does(() =>
Information("Cleaning out directories 0 for 1...", configuration, solution);
CleanDirectories("./**/bin/" + configuration);
CleanDirectories("./**/obj/" + configuration);
);
Task("Restore")
.IsDependentOn("Clean")
.Does(() =>
//This can restore both .NET Core and Framework NuGet packages.
Information("Restoring Nuget packages for 0...", solution);
DotNetCoreRestore();
);
Task("Build")
.IsDependentOn("Restore")
.Does(() =>
//If we change all the projects and solution to .NET Core, then we will need to change this build call to DotNetCoreBuild().
//Because we have a mixed solution (unit tests are .NET Core and all other projects are .NET Framework), we need to still use MSBuild.
Information("Building solution 0 using the 1 configuration...", solution, configuration);
MSBuild(solution, new MSBuildSettings
Configuration = configuration
);
);
Task("UnitTests")
.IsDependentOn("Build")
.Does(() =>
Information("Unit testing solution 0 using the 1 configuration...", solution, configuration);
var projects = GetFiles("./UnitTests/*.csproj");
foreach(var project in projects)
DotNetCoreTest(
project.FullPath,
new DotNetCoreTestSettings()
Configuration = configuration,
NoBuild = true
);
);
Task("UnitTestsOnly")
.Does(() =>
Information("Unit testing solution 0 using the 1 configuration...", solution, configuration);
var projects = GetFiles("./UnitTests/*.csproj");
foreach(var project in projects)
DotNetCoreTest(
project.FullPath,
new DotNetCoreTestSettings()
Configuration = configuration,
NoBuild = true
);
);
RunTarget(target);
Now when I run this in Azure DevOps, I get 10 errors for each project similar to this example below:
"D:a1sPPILMyCompany.MyProduct.IntegrationLayer.sln" (Build target) (1) ->
"D:a1sPPILMC.MP.IL.DatabaseDataResetMC.MP.IL.DatabaseDataReset.csproj" (default target) (11) ->
D:a1sPPILMC.MP.IL.DatabaseDataResetMC.MP.IL.DatabaseDataReset.csproj(123,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..packagesMicrosoft.VisualStudio.SlowCheetah.3.1.66buildMicrosoft.VisualStudio.SlowCheetah.targets.
I am unsure of exactly the problem. It could be because we have a mixed project. It could be because the file structure. I don't know what options or settings I would need to set in the cake commands for build or restore. It could also be when I run this locally, I run it in the same folder as the Cake script, but it appears to be running in the root folder for my repo which is one folder up from the solution folder for this solution.
Where in my script am I going wrong? My restore step seems fine except it only restores the UnitTests project (which does depend on all other projects). Is it the restore? Is there a setting I am missing in the build or the restore? Thanks in advance.
.net .net-core
1
Is it possible that you're not doing Nuget restore on your .Net framework dependencies? It looks like your "restore" task is only restoring the .Net Core packages... It may also explain why it "works on your machine" - you already have all dependencies installed - maybe you can try on a clean VM
– Amittai Shapira
Mar 27 at 19:48
add a comment |
I have a cake build script with my .NET server project which needs to be built on our new Azure DevOps pipeline. The script works locally but does not work on Azure DevOps. There are possible reasons for this which may be that I have a Unit Tests project (xUnit) built on .NET Core 2.1 while all the other projects in solution are .NET Framework 4.6.1 (we just added in the xUnit project which my only option was to add it in as a .NET Core project).
I wrote my cake script which works locally. It looks like this:
//Always lock down versions of tools so that we can ensure a tool works before upgrading instead of auto-upgrading.
#tool "nuget:?package=xunit.runner.console&version=2.4.1"
#tool "nuget:?package=ReportUnit&version=1.2.1"
var target = Argument("target", "Build");
var configuration = Argument("configuration", "Dev");
var solution = @".MyCompany.MyProduct.IntegrationLayer.sln";
var report = Directory(@".reports");
var xunitReport = report + Directory("xunit");
Task("Clean")
.Does(() =>
Information("Cleaning out directories 0 for 1...", configuration, solution);
CleanDirectories("./**/bin/" + configuration);
CleanDirectories("./**/obj/" + configuration);
);
Task("Restore")
.IsDependentOn("Clean")
.Does(() =>
//This can restore both .NET Core and Framework NuGet packages.
Information("Restoring Nuget packages for 0...", solution);
DotNetCoreRestore();
);
Task("Build")
.IsDependentOn("Restore")
.Does(() =>
//If we change all the projects and solution to .NET Core, then we will need to change this build call to DotNetCoreBuild().
//Because we have a mixed solution (unit tests are .NET Core and all other projects are .NET Framework), we need to still use MSBuild.
Information("Building solution 0 using the 1 configuration...", solution, configuration);
MSBuild(solution, new MSBuildSettings
Configuration = configuration
);
);
Task("UnitTests")
.IsDependentOn("Build")
.Does(() =>
Information("Unit testing solution 0 using the 1 configuration...", solution, configuration);
var projects = GetFiles("./UnitTests/*.csproj");
foreach(var project in projects)
DotNetCoreTest(
project.FullPath,
new DotNetCoreTestSettings()
Configuration = configuration,
NoBuild = true
);
);
Task("UnitTestsOnly")
.Does(() =>
Information("Unit testing solution 0 using the 1 configuration...", solution, configuration);
var projects = GetFiles("./UnitTests/*.csproj");
foreach(var project in projects)
DotNetCoreTest(
project.FullPath,
new DotNetCoreTestSettings()
Configuration = configuration,
NoBuild = true
);
);
RunTarget(target);
Now when I run this in Azure DevOps, I get 10 errors for each project similar to this example below:
"D:a1sPPILMyCompany.MyProduct.IntegrationLayer.sln" (Build target) (1) ->
"D:a1sPPILMC.MP.IL.DatabaseDataResetMC.MP.IL.DatabaseDataReset.csproj" (default target) (11) ->
D:a1sPPILMC.MP.IL.DatabaseDataResetMC.MP.IL.DatabaseDataReset.csproj(123,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..packagesMicrosoft.VisualStudio.SlowCheetah.3.1.66buildMicrosoft.VisualStudio.SlowCheetah.targets.
I am unsure of exactly the problem. It could be because we have a mixed project. It could be because the file structure. I don't know what options or settings I would need to set in the cake commands for build or restore. It could also be when I run this locally, I run it in the same folder as the Cake script, but it appears to be running in the root folder for my repo which is one folder up from the solution folder for this solution.
Where in my script am I going wrong? My restore step seems fine except it only restores the UnitTests project (which does depend on all other projects). Is it the restore? Is there a setting I am missing in the build or the restore? Thanks in advance.
.net .net-core
I have a cake build script with my .NET server project which needs to be built on our new Azure DevOps pipeline. The script works locally but does not work on Azure DevOps. There are possible reasons for this which may be that I have a Unit Tests project (xUnit) built on .NET Core 2.1 while all the other projects in solution are .NET Framework 4.6.1 (we just added in the xUnit project which my only option was to add it in as a .NET Core project).
I wrote my cake script which works locally. It looks like this:
//Always lock down versions of tools so that we can ensure a tool works before upgrading instead of auto-upgrading.
#tool "nuget:?package=xunit.runner.console&version=2.4.1"
#tool "nuget:?package=ReportUnit&version=1.2.1"
var target = Argument("target", "Build");
var configuration = Argument("configuration", "Dev");
var solution = @".MyCompany.MyProduct.IntegrationLayer.sln";
var report = Directory(@".reports");
var xunitReport = report + Directory("xunit");
Task("Clean")
.Does(() =>
Information("Cleaning out directories 0 for 1...", configuration, solution);
CleanDirectories("./**/bin/" + configuration);
CleanDirectories("./**/obj/" + configuration);
);
Task("Restore")
.IsDependentOn("Clean")
.Does(() =>
//This can restore both .NET Core and Framework NuGet packages.
Information("Restoring Nuget packages for 0...", solution);
DotNetCoreRestore();
);
Task("Build")
.IsDependentOn("Restore")
.Does(() =>
//If we change all the projects and solution to .NET Core, then we will need to change this build call to DotNetCoreBuild().
//Because we have a mixed solution (unit tests are .NET Core and all other projects are .NET Framework), we need to still use MSBuild.
Information("Building solution 0 using the 1 configuration...", solution, configuration);
MSBuild(solution, new MSBuildSettings
Configuration = configuration
);
);
Task("UnitTests")
.IsDependentOn("Build")
.Does(() =>
Information("Unit testing solution 0 using the 1 configuration...", solution, configuration);
var projects = GetFiles("./UnitTests/*.csproj");
foreach(var project in projects)
DotNetCoreTest(
project.FullPath,
new DotNetCoreTestSettings()
Configuration = configuration,
NoBuild = true
);
);
Task("UnitTestsOnly")
.Does(() =>
Information("Unit testing solution 0 using the 1 configuration...", solution, configuration);
var projects = GetFiles("./UnitTests/*.csproj");
foreach(var project in projects)
DotNetCoreTest(
project.FullPath,
new DotNetCoreTestSettings()
Configuration = configuration,
NoBuild = true
);
);
RunTarget(target);
Now when I run this in Azure DevOps, I get 10 errors for each project similar to this example below:
"D:a1sPPILMyCompany.MyProduct.IntegrationLayer.sln" (Build target) (1) ->
"D:a1sPPILMC.MP.IL.DatabaseDataResetMC.MP.IL.DatabaseDataReset.csproj" (default target) (11) ->
D:a1sPPILMC.MP.IL.DatabaseDataResetMC.MP.IL.DatabaseDataReset.csproj(123,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..packagesMicrosoft.VisualStudio.SlowCheetah.3.1.66buildMicrosoft.VisualStudio.SlowCheetah.targets.
I am unsure of exactly the problem. It could be because we have a mixed project. It could be because the file structure. I don't know what options or settings I would need to set in the cake commands for build or restore. It could also be when I run this locally, I run it in the same folder as the Cake script, but it appears to be running in the root folder for my repo which is one folder up from the solution folder for this solution.
Where in my script am I going wrong? My restore step seems fine except it only restores the UnitTests project (which does depend on all other projects). Is it the restore? Is there a setting I am missing in the build or the restore? Thanks in advance.
.net .net-core
.net .net-core
edited Mar 27 at 19:53
Amittai Shapira
3,19823 silver badges46 bronze badges
3,19823 silver badges46 bronze badges
asked Mar 27 at 19:40
Ross GustafsonRoss Gustafson
1212 silver badges9 bronze badges
1212 silver badges9 bronze badges
1
Is it possible that you're not doing Nuget restore on your .Net framework dependencies? It looks like your "restore" task is only restoring the .Net Core packages... It may also explain why it "works on your machine" - you already have all dependencies installed - maybe you can try on a clean VM
– Amittai Shapira
Mar 27 at 19:48
add a comment |
1
Is it possible that you're not doing Nuget restore on your .Net framework dependencies? It looks like your "restore" task is only restoring the .Net Core packages... It may also explain why it "works on your machine" - you already have all dependencies installed - maybe you can try on a clean VM
– Amittai Shapira
Mar 27 at 19:48
1
1
Is it possible that you're not doing Nuget restore on your .Net framework dependencies? It looks like your "restore" task is only restoring the .Net Core packages... It may also explain why it "works on your machine" - you already have all dependencies installed - maybe you can try on a clean VM
– Amittai Shapira
Mar 27 at 19:48
Is it possible that you're not doing Nuget restore on your .Net framework dependencies? It looks like your "restore" task is only restoring the .Net Core packages... It may also explain why it "works on your machine" - you already have all dependencies installed - maybe you can try on a clean VM
– Amittai Shapira
Mar 27 at 19:48
add a comment |
1 Answer
1
active
oldest
votes
So the answer was that I had get all of the project files and run "NuGetRestore" method on each of them excluding the .NET Core UnitTests project. Then I can run the DotNetCoreRestore method which just restores the .NET Core UnitTests project.
I also found I should clean the packages directory as that is good practice.
Thanks for your kindly share, you could mark your reply as an answer, which will also helps others in the community.
– PatrickLu-MSFT
Mar 29 at 3:23
I will... in 6ish hours when the website lets me. ;)
– Ross Gustafson
Mar 29 at 13:00
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385262%2fcake-build-script-fails-in-azure-devops-with-mixed-net-core-and-framework-solut%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
So the answer was that I had get all of the project files and run "NuGetRestore" method on each of them excluding the .NET Core UnitTests project. Then I can run the DotNetCoreRestore method which just restores the .NET Core UnitTests project.
I also found I should clean the packages directory as that is good practice.
Thanks for your kindly share, you could mark your reply as an answer, which will also helps others in the community.
– PatrickLu-MSFT
Mar 29 at 3:23
I will... in 6ish hours when the website lets me. ;)
– Ross Gustafson
Mar 29 at 13:00
add a comment |
So the answer was that I had get all of the project files and run "NuGetRestore" method on each of them excluding the .NET Core UnitTests project. Then I can run the DotNetCoreRestore method which just restores the .NET Core UnitTests project.
I also found I should clean the packages directory as that is good practice.
Thanks for your kindly share, you could mark your reply as an answer, which will also helps others in the community.
– PatrickLu-MSFT
Mar 29 at 3:23
I will... in 6ish hours when the website lets me. ;)
– Ross Gustafson
Mar 29 at 13:00
add a comment |
So the answer was that I had get all of the project files and run "NuGetRestore" method on each of them excluding the .NET Core UnitTests project. Then I can run the DotNetCoreRestore method which just restores the .NET Core UnitTests project.
I also found I should clean the packages directory as that is good practice.
So the answer was that I had get all of the project files and run "NuGetRestore" method on each of them excluding the .NET Core UnitTests project. Then I can run the DotNetCoreRestore method which just restores the .NET Core UnitTests project.
I also found I should clean the packages directory as that is good practice.
answered Mar 28 at 15:17
Ross GustafsonRoss Gustafson
1212 silver badges9 bronze badges
1212 silver badges9 bronze badges
Thanks for your kindly share, you could mark your reply as an answer, which will also helps others in the community.
– PatrickLu-MSFT
Mar 29 at 3:23
I will... in 6ish hours when the website lets me. ;)
– Ross Gustafson
Mar 29 at 13:00
add a comment |
Thanks for your kindly share, you could mark your reply as an answer, which will also helps others in the community.
– PatrickLu-MSFT
Mar 29 at 3:23
I will... in 6ish hours when the website lets me. ;)
– Ross Gustafson
Mar 29 at 13:00
Thanks for your kindly share, you could mark your reply as an answer, which will also helps others in the community.
– PatrickLu-MSFT
Mar 29 at 3:23
Thanks for your kindly share, you could mark your reply as an answer, which will also helps others in the community.
– PatrickLu-MSFT
Mar 29 at 3:23
I will... in 6ish hours when the website lets me. ;)
– Ross Gustafson
Mar 29 at 13:00
I will... in 6ish hours when the website lets me. ;)
– Ross Gustafson
Mar 29 at 13:00
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55385262%2fcake-build-script-fails-in-azure-devops-with-mixed-net-core-and-framework-solut%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Is it possible that you're not doing Nuget restore on your .Net framework dependencies? It looks like your "restore" task is only restoring the .Net Core packages... It may also explain why it "works on your machine" - you already have all dependencies installed - maybe you can try on a clean VM
– Amittai Shapira
Mar 27 at 19:48