VSO Build Pipeline's Nuget Restore FailedThe project was restored using Microsoft.NETCore.App version 2.1.0, but with current settings, version 2.1.0-rtm-26515-03 would be used insteadVSO Hosted Build fails with in dotnet restore step on 3rd part referencesNuget restore fails on VSO 2017 build for CORE packagesNuget Restore ignore references projectsVSTS Nuget Restore Fails with non compatible assembly errorupdate or downgrade .csproj file after nuget restore packages from packages.configExclude .NET Standard/.NET Core projects from NuGet restore stepVSTS Nuget restore credentialsAssets file project.assets.json not found when running a build on Azure DevopsAzure Devops Nuget Restore Task failsWhich ASPNetCore packages are compatible with netcoreapp2.1?
How to answer pointed "are you quitting" questioning when I don't want them to suspect
LWC and complex parameters
Is domain driven design an anti-SQL pattern?
Why is my log file so massive? 22gb. I am running log backups
Should the British be getting ready for a no-deal Brexit?
Why do UK politicians seemingly ignore opinion polls on Brexit?
Manga about a female worker who got dragged into another world together with this high school girl and she was just told she's not needed anymore
What are the advantages and disadvantages of running one shots compared to campaigns?
Was there ever an axiom rendered a theorem?
Is every set a filtered colimit of finite sets?
How would photo IDs work for shapeshifters?
Is this food a bread or a loaf?
aging parents with no investments
Need help identifying/translating a plaque in Tangier, Morocco
Unbreakable Formation vs. Cry of the Carnarium
Is a vector space a subspace?
Email Account under attack (really) - anything I can do?
Does the average primeness of natural numbers tend to zero?
Why doesn't a const reference extend the life of a temporary object passed via a function?
Domain expired, GoDaddy holds it and is asking more money
Is there a way to make member function NOT callable from constructor?
Calculate Levenshtein distance between two strings in Python
A poker game description that does not feel gimmicky
What to wear for invited talk in Canada
VSO Build Pipeline's Nuget Restore Failed
The project was restored using Microsoft.NETCore.App version 2.1.0, but with current settings, version 2.1.0-rtm-26515-03 would be used insteadVSO Hosted Build fails with in dotnet restore step on 3rd part referencesNuget restore fails on VSO 2017 build for CORE packagesNuget Restore ignore references projectsVSTS Nuget Restore Fails with non compatible assembly errorupdate or downgrade .csproj file after nuget restore packages from packages.configExclude .NET Standard/.NET Core projects from NuGet restore stepVSTS Nuget restore credentialsAssets file project.assets.json not found when running a build on Azure DevopsAzure Devops Nuget Restore Task failsWhich ASPNetCore packages are compatible with netcoreapp2.1?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
The Nuget Restore from VSO's build pipeline failed due to some nuget packages that are not compatible with netcoreapp2.1
. However, when I looked through all the csproj files in the solution, none of the csproj files have these nuget packages. I might have installed these before but right now it's definitely not here.
Here's the csproj file that is mentioned in the error message.
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.6" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
</ItemGroup>
Here's the Nuget.Config file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
Please advise how to fix this issue.
EDIT=====================================================
After removing the nuget package from Microsoft.AspNet.WebApi
, the NugetRestore
passed, but Build solution
failed. It shows a different error
[error]C:Program Filesdotnetsdk2.2.104SdksMicrosoft.NET.SdktargetsMicrosoft.PackageDependencyResolution.targets(208,5):
Error NETSDK1004: Assets file
'd:agentwrok18s....objproject.assets.json' not found. Run a
NuGet package restore to generate this file.
This is the configuration for Build Solution
Any advice on the next step?
azure asp.net-core azure-devops nuget-package azure-pipelines
add a comment |
The Nuget Restore from VSO's build pipeline failed due to some nuget packages that are not compatible with netcoreapp2.1
. However, when I looked through all the csproj files in the solution, none of the csproj files have these nuget packages. I might have installed these before but right now it's definitely not here.
Here's the csproj file that is mentioned in the error message.
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.6" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
</ItemGroup>
Here's the Nuget.Config file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
Please advise how to fix this issue.
EDIT=====================================================
After removing the nuget package from Microsoft.AspNet.WebApi
, the NugetRestore
passed, but Build solution
failed. It shows a different error
[error]C:Program Filesdotnetsdk2.2.104SdksMicrosoft.NET.SdktargetsMicrosoft.PackageDependencyResolution.targets(208,5):
Error NETSDK1004: Assets file
'd:agentwrok18s....objproject.assets.json' not found. Run a
NuGet package restore to generate this file.
This is the configuration for Build Solution
Any advice on the next step?
azure asp.net-core azure-devops nuget-package azure-pipelines
2
You tagged aspnetcore but you are using standard version nuget.org/packages/Microsoft.AspNet.WebApi. why?
– Volodymyr Bilyachat
Mar 22 at 2:15
add a comment |
The Nuget Restore from VSO's build pipeline failed due to some nuget packages that are not compatible with netcoreapp2.1
. However, when I looked through all the csproj files in the solution, none of the csproj files have these nuget packages. I might have installed these before but right now it's definitely not here.
Here's the csproj file that is mentioned in the error message.
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.6" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
</ItemGroup>
Here's the Nuget.Config file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
Please advise how to fix this issue.
EDIT=====================================================
After removing the nuget package from Microsoft.AspNet.WebApi
, the NugetRestore
passed, but Build solution
failed. It shows a different error
[error]C:Program Filesdotnetsdk2.2.104SdksMicrosoft.NET.SdktargetsMicrosoft.PackageDependencyResolution.targets(208,5):
Error NETSDK1004: Assets file
'd:agentwrok18s....objproject.assets.json' not found. Run a
NuGet package restore to generate this file.
This is the configuration for Build Solution
Any advice on the next step?
azure asp.net-core azure-devops nuget-package azure-pipelines
The Nuget Restore from VSO's build pipeline failed due to some nuget packages that are not compatible with netcoreapp2.1
. However, when I looked through all the csproj files in the solution, none of the csproj files have these nuget packages. I might have installed these before but right now it's definitely not here.
Here's the csproj file that is mentioned in the error message.
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi" Version="5.2.6" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
</ItemGroup>
Here's the Nuget.Config file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
Please advise how to fix this issue.
EDIT=====================================================
After removing the nuget package from Microsoft.AspNet.WebApi
, the NugetRestore
passed, but Build solution
failed. It shows a different error
[error]C:Program Filesdotnetsdk2.2.104SdksMicrosoft.NET.SdktargetsMicrosoft.PackageDependencyResolution.targets(208,5):
Error NETSDK1004: Assets file
'd:agentwrok18s....objproject.assets.json' not found. Run a
NuGet package restore to generate this file.
This is the configuration for Build Solution
Any advice on the next step?
azure asp.net-core azure-devops nuget-package azure-pipelines
azure asp.net-core azure-devops nuget-package azure-pipelines
edited Mar 22 at 18:26
superninja
asked Mar 22 at 1:46
superninjasuperninja
5421518
5421518
2
You tagged aspnetcore but you are using standard version nuget.org/packages/Microsoft.AspNet.WebApi. why?
– Volodymyr Bilyachat
Mar 22 at 2:15
add a comment |
2
You tagged aspnetcore but you are using standard version nuget.org/packages/Microsoft.AspNet.WebApi. why?
– Volodymyr Bilyachat
Mar 22 at 2:15
2
2
You tagged aspnetcore but you are using standard version nuget.org/packages/Microsoft.AspNet.WebApi. why?
– Volodymyr Bilyachat
Mar 22 at 2:15
You tagged aspnetcore but you are using standard version nuget.org/packages/Microsoft.AspNet.WebApi. why?
– Volodymyr Bilyachat
Mar 22 at 2:15
add a comment |
1 Answer
1
active
oldest
votes
VSO Build Pipeline's Nuget Restore Failed
Just like Volodymyr commented, you should not use the package Microsoft.AspNet.WebApi
for the .net core project. That because this package is target for .NETFamework not .NET Core/.NETStandard, which is not compatible with .NET Core.
When you check the package Microsoft.AspNet.WebApi
no the nuget.org, you will notice that this package have a dependency Microsoft.AspNet.WebApi.WebHost
, which only target to the .NET Framework:
And the sub-dependency Microsoft.AspNet.WebApi.Core of the package Microsoft.AspNet.WebApi.WebHost
also only target to the .NET Framework:
So, the reason for this issue is that the package Microsoft.AspNet.WebApi
and its dependencies are not compatible with .NET Core framework.
Hope this helps.
I removed this nuget package but it is giving me a different error:Assets file: ....objprohect.assets.json
not found
– superninja
Mar 22 at 18:29
1
@WWpana, Check the solution here:stackoverflow.com/questions/51642172/…
– Leo Liu-MSFT
Mar 23 at 5:18
1
@WWpana, Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
– Leo Liu-MSFT
Mar 27 at 7:31
yes it worked. thanks. Will comment again if it fails again.
– superninja
Mar 27 at 18:46
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%2f55291736%2fvso-build-pipelines-nuget-restore-failed%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
VSO Build Pipeline's Nuget Restore Failed
Just like Volodymyr commented, you should not use the package Microsoft.AspNet.WebApi
for the .net core project. That because this package is target for .NETFamework not .NET Core/.NETStandard, which is not compatible with .NET Core.
When you check the package Microsoft.AspNet.WebApi
no the nuget.org, you will notice that this package have a dependency Microsoft.AspNet.WebApi.WebHost
, which only target to the .NET Framework:
And the sub-dependency Microsoft.AspNet.WebApi.Core of the package Microsoft.AspNet.WebApi.WebHost
also only target to the .NET Framework:
So, the reason for this issue is that the package Microsoft.AspNet.WebApi
and its dependencies are not compatible with .NET Core framework.
Hope this helps.
I removed this nuget package but it is giving me a different error:Assets file: ....objprohect.assets.json
not found
– superninja
Mar 22 at 18:29
1
@WWpana, Check the solution here:stackoverflow.com/questions/51642172/…
– Leo Liu-MSFT
Mar 23 at 5:18
1
@WWpana, Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
– Leo Liu-MSFT
Mar 27 at 7:31
yes it worked. thanks. Will comment again if it fails again.
– superninja
Mar 27 at 18:46
add a comment |
VSO Build Pipeline's Nuget Restore Failed
Just like Volodymyr commented, you should not use the package Microsoft.AspNet.WebApi
for the .net core project. That because this package is target for .NETFamework not .NET Core/.NETStandard, which is not compatible with .NET Core.
When you check the package Microsoft.AspNet.WebApi
no the nuget.org, you will notice that this package have a dependency Microsoft.AspNet.WebApi.WebHost
, which only target to the .NET Framework:
And the sub-dependency Microsoft.AspNet.WebApi.Core of the package Microsoft.AspNet.WebApi.WebHost
also only target to the .NET Framework:
So, the reason for this issue is that the package Microsoft.AspNet.WebApi
and its dependencies are not compatible with .NET Core framework.
Hope this helps.
I removed this nuget package but it is giving me a different error:Assets file: ....objprohect.assets.json
not found
– superninja
Mar 22 at 18:29
1
@WWpana, Check the solution here:stackoverflow.com/questions/51642172/…
– Leo Liu-MSFT
Mar 23 at 5:18
1
@WWpana, Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
– Leo Liu-MSFT
Mar 27 at 7:31
yes it worked. thanks. Will comment again if it fails again.
– superninja
Mar 27 at 18:46
add a comment |
VSO Build Pipeline's Nuget Restore Failed
Just like Volodymyr commented, you should not use the package Microsoft.AspNet.WebApi
for the .net core project. That because this package is target for .NETFamework not .NET Core/.NETStandard, which is not compatible with .NET Core.
When you check the package Microsoft.AspNet.WebApi
no the nuget.org, you will notice that this package have a dependency Microsoft.AspNet.WebApi.WebHost
, which only target to the .NET Framework:
And the sub-dependency Microsoft.AspNet.WebApi.Core of the package Microsoft.AspNet.WebApi.WebHost
also only target to the .NET Framework:
So, the reason for this issue is that the package Microsoft.AspNet.WebApi
and its dependencies are not compatible with .NET Core framework.
Hope this helps.
VSO Build Pipeline's Nuget Restore Failed
Just like Volodymyr commented, you should not use the package Microsoft.AspNet.WebApi
for the .net core project. That because this package is target for .NETFamework not .NET Core/.NETStandard, which is not compatible with .NET Core.
When you check the package Microsoft.AspNet.WebApi
no the nuget.org, you will notice that this package have a dependency Microsoft.AspNet.WebApi.WebHost
, which only target to the .NET Framework:
And the sub-dependency Microsoft.AspNet.WebApi.Core of the package Microsoft.AspNet.WebApi.WebHost
also only target to the .NET Framework:
So, the reason for this issue is that the package Microsoft.AspNet.WebApi
and its dependencies are not compatible with .NET Core framework.
Hope this helps.
answered Mar 22 at 7:33
Leo Liu-MSFTLeo Liu-MSFT
21.5k22635
21.5k22635
I removed this nuget package but it is giving me a different error:Assets file: ....objprohect.assets.json
not found
– superninja
Mar 22 at 18:29
1
@WWpana, Check the solution here:stackoverflow.com/questions/51642172/…
– Leo Liu-MSFT
Mar 23 at 5:18
1
@WWpana, Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
– Leo Liu-MSFT
Mar 27 at 7:31
yes it worked. thanks. Will comment again if it fails again.
– superninja
Mar 27 at 18:46
add a comment |
I removed this nuget package but it is giving me a different error:Assets file: ....objprohect.assets.json
not found
– superninja
Mar 22 at 18:29
1
@WWpana, Check the solution here:stackoverflow.com/questions/51642172/…
– Leo Liu-MSFT
Mar 23 at 5:18
1
@WWpana, Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
– Leo Liu-MSFT
Mar 27 at 7:31
yes it worked. thanks. Will comment again if it fails again.
– superninja
Mar 27 at 18:46
I removed this nuget package but it is giving me a different error:
Assets file: ....objprohect.assets.json
not found– superninja
Mar 22 at 18:29
I removed this nuget package but it is giving me a different error:
Assets file: ....objprohect.assets.json
not found– superninja
Mar 22 at 18:29
1
1
@WWpana, Check the solution here:stackoverflow.com/questions/51642172/…
– Leo Liu-MSFT
Mar 23 at 5:18
@WWpana, Check the solution here:stackoverflow.com/questions/51642172/…
– Leo Liu-MSFT
Mar 23 at 5:18
1
1
@WWpana, Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
– Leo Liu-MSFT
Mar 27 at 7:31
@WWpana, Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
– Leo Liu-MSFT
Mar 27 at 7:31
yes it worked. thanks. Will comment again if it fails again.
– superninja
Mar 27 at 18:46
yes it worked. thanks. Will comment again if it fails again.
– superninja
Mar 27 at 18:46
add a comment |
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%2f55291736%2fvso-build-pipelines-nuget-restore-failed%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
2
You tagged aspnetcore but you are using standard version nuget.org/packages/Microsoft.AspNet.WebApi. why?
– Volodymyr Bilyachat
Mar 22 at 2:15