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

Cannot use ExtrasBuildEachRuntimeIdentifier with TargetFrameworks=netcoreapp3.1 #230

Open
AAATechGuy opened this issue Jun 18, 2020 · 0 comments

Comments

@AAATechGuy
Copy link

Get the following error:

"D:\src\AdsAppsDB\private\Tools\DB\DBDeploy\DBDeployV2\DBDeployV2.csproj" (default target) (1) ->
(Publish target) ->
  C:\Program Files\dotnet\sdk\3.1.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.CrossTargeting.targets(27,5): error : The 'Publish' target is not supported without specifying a target framework. The current project targets multip
le frameworks, please specify the framework for the published application. [D:\src\AdsAppsDB\private\Tools\DB\DBDeploy\DBDeployV2\DBDeployV2.csproj]

csproj config as follows:

<Project Sdk="MSBuild.Sdk.Extras/2.0.54" DefaultTargets="Build;Publish">
  <PropertyGroup>
    <TargetFrameworks>netcoreapp3.1</TargetFrameworks>
    <OutputType>Exe</OutputType>
    <DebugType>full</DebugType>
    <RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
    <ExtrasBuildEachRuntimeIdentifier>true</ExtrasBuildEachRuntimeIdentifier>
  </PropertyGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant