Error MSB4057: The target "CreateDeb" does not exist in the project. #48

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

Originally created by @endasil on GitHub (May 4, 2019).

I saw the response to the other post and have made sure i have entry under ItemGroups . Is there something i missed in the readme?

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.2</TargetFramework>	
    <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
    <RootNamespace>myprogram</RootNamespace>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="FirebaseDatabase.net" Version="4.0.1" />
    <PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.2.4" />
    <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.2.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
    <PackageReference Include="RabbitMQ.Client" Version="5.1.0" />
	<PackageReference Include="Packaging.Targets" Version="0.1.56" />
  </ItemGroup>

  <ItemGroup>
    <None Update="config.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>
  <ProjectExtensions><VisualStudio><UserProperties /></VisualStudio></ProjectExtensions>

</Project>

Originally created by @endasil on GitHub (May 4, 2019). I saw the response to the other post and have made sure i have <PackageReference Include="Packaging.Targets" Version="0.1.56" /> entry under ItemGroups . Is there something i missed in the readme? ``` <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp2.2</TargetFramework> <TargetLatestRuntimePatch>true</TargetLatestRuntimePatch> <RootNamespace>myprogram</RootNamespace> </PropertyGroup> <ItemGroup> <PackageReference Include="FirebaseDatabase.net" Version="4.0.1" /> <PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.2.4" /> <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="2.2.0" /> <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" /> <PackageReference Include="RabbitMQ.Client" Version="5.1.0" /> <PackageReference Include="Packaging.Targets" Version="0.1.56" /> </ItemGroup> <ItemGroup> <None Update="config.json"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> </ItemGroup> <ProjectExtensions><VisualStudio><UserProperties /></VisualStudio></ProjectExtensions> </Project> ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#48