diff --git a/Directory.Build.targets b/Directory.Build.targets index 84047c0d..e4fbdbd7 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -3,8 +3,6 @@ DependsOnTargets="Publish" Condition="'$(UnityPublish.Contains(true))'"> - netstandard2.1 - netstandard2.1 Release false en diff --git a/scripts/UnityPublish.sh b/scripts/UnityPublish.sh index 73041a61..6bb47d38 100755 --- a/scripts/UnityPublish.sh +++ b/scripts/UnityPublish.sh @@ -1,13 +1,18 @@ #!/bin/bash # Publishes Unity release to dist/Assemblies using only netstandard2.0 and netstandard2.1 -# Does NOT include source generation ######################################################################################### dotnet restore assemblyDir="`pwd`/dist/Assemblies" +rm -rf "${assemblyDir}" + mkdir -p "${assemblyDir}" -dotnet msbuild /t:Unity -p:PublishDir="${assemblyDir}" +dotnet msbuild /t:Unity \ + -p:PublishDir="${assemblyDir}" \ + -p:TargetFramework=netstandard2.1 \ + -p:TargetFrameworks=netstandard2.1 \ + -p:TargetFrameworkVersion=v2.1