Skip to content
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

[Bug] Fix Pipeline error NETSDK1047 #108

Closed
Hofknecht opened this issue Jun 20, 2020 · 0 comments
Closed

[Bug] Fix Pipeline error NETSDK1047 #108

Hofknecht opened this issue Jun 20, 2020 · 0 comments
Assignees
Milestone

Comments

@Hofknecht
Copy link
Owner

Hofknecht commented Jun 20, 2020

##[error]C:\hostedtoolcache\windows\dotnet\sdk\3.1.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): Error NETSDK1047: Assets file 'd:\a\1\s\obj\project.assets.json' doesn't have a target for '.NETCoreApp,Version=v3.1/win-x86'. Ensure that restore has run and that you have included 'netcoreapp3.1' in the TargetFrameworks for your project. You may also need to include 'win-x86' in your project's RuntimeIdentifiers.
C:\hostedtoolcache\windows\dotnet\sdk\3.1.102\Sdks\Microsoft.NET.Sdk

test locally with
MSBuild.exe D:\Seafile\Markus\C#Projects\systemtraymenu\SystemTrayMenu.csproj -property:Configuration=Release

see here dotnet/sdk#1321

Add line below to the csproj file, beneath the <TargetFramework>netcoreapp3.0</TargetFramework>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
@Hofknecht Hofknecht self-assigned this Jun 20, 2020
@Hofknecht Hofknecht added this to the 0.11 milestone Jun 20, 2020
wroldwiedbwe pushed a commit to wroldwiedbwe/SystemTrayMenu that referenced this issue Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant