doe sn't have a target for '.NETCoreApp,Version=v2.1/ubuntu.16.04-x64' #55

Closed
opened 2026-01-29 16:28:19 +00:00 by claunia · 0 comments
Owner

Originally created by @evildemons on GitHub (Jun 13, 2019).

I do not understand what is wrong, I have done so to do.

C:\Users\testing\source\repos\Linux-test-deb>"C:\Program Files\dotnet\dotnet.exe
" deb  -f netcoreapp2.1 -c release -r ubuntu.16.04-x64
dotnet Debian/Ubuntu installer package (0.1.78+708c0e30c3)
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files\dotnet\sdk\2.1.503\Sdks\Microsoft.NET.Sdk\targets\Microsoft.Pac
kageDependencyResolution.targets(198,5): error NETSDK1047: Assets file 'C:\Users
\testing\source\repos\Linux-test-deb\Linux-test-deb\obj\project.assets.json' doe
sn't have a target for '.NETCoreApp,Version=v2.1/ubuntu.16.04-x64'. Ensure that
restore has run and that you have included 'netcoreapp2.1' in the TargetFramewor
ks for your project. You may also need to include 'ubuntu.16.04-x64' in your pro
ject's RuntimeIdentifiers. [C:\Users\testing\source\repos\Linux-test-deb\Linux-t
est-deb\Linux-test-deb.csproj]
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <RootNamespace>Linux_test_deb</RootNamespace>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Packaging.Targets" Version="0.1.78" />
  </ItemGroup>

</Project>
Originally created by @evildemons on GitHub (Jun 13, 2019). I do not understand what is wrong, I have done so to do. ``` C:\Users\testing\source\repos\Linux-test-deb>"C:\Program Files\dotnet\dotnet.exe " deb -f netcoreapp2.1 -c release -r ubuntu.16.04-x64 dotnet Debian/Ubuntu installer package (0.1.78+708c0e30c3) Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core Copyright (C) Microsoft Corporation. All rights reserved. C:\Program Files\dotnet\sdk\2.1.503\Sdks\Microsoft.NET.Sdk\targets\Microsoft.Pac kageDependencyResolution.targets(198,5): error NETSDK1047: Assets file 'C:\Users \testing\source\repos\Linux-test-deb\Linux-test-deb\obj\project.assets.json' doe sn't have a target for '.NETCoreApp,Version=v2.1/ubuntu.16.04-x64'. Ensure that restore has run and that you have included 'netcoreapp2.1' in the TargetFramewor ks for your project. You may also need to include 'ubuntu.16.04-x64' in your pro ject's RuntimeIdentifiers. [C:\Users\testing\source\repos\Linux-test-deb\Linux-t est-deb\Linux-test-deb.csproj] ``` ``` <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp2.1</TargetFramework> <RootNamespace>Linux_test_deb</RootNamespace> </PropertyGroup> <ItemGroup> <PackageReference Include="Packaging.Targets" Version="0.1.78" /> </ItemGroup> </Project> ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#55