Skip to content

Commit

Permalink
Fix more packaging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutch committed Oct 3, 2023
1 parent e1a447e commit 3e3b932
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
10 changes: 5 additions & 5 deletions Mono.TextTemplating.Build/Mono.TextTemplating.Build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

<Target Name="AddTargetsFilesToPack" BeforeTargets="GenerateNuspec">
<ItemGroup>
<_PackageFiles Include="Mono.TextTemplating.Build.props" PackagePath="build" Pack="true" />
<_PackageFiles Include="Mono.TextTemplating.Build.targets" PackagePath="build" Pack="true" />
<_PackageFiles Include="multitargeting.props" PackagePath="buildMultiTargeting\Mono.TextTemplating.Build.props" Pack="true" />
<_PackageFiles Include="multitargeting.targets" PackagePath="buildMultiTargeting\Mono.TextTemplating.Build.targets" Pack="true" />
<_PackageFiles Include="Mono.TextTemplating.Build.targets.buildschema.json" PackagePath="build" Pack="true" />
<_PackageFiles Include="T4.BuildTools.props" PackagePath="build\$(PackageId).props" Pack="true" />
<_PackageFiles Include="T4.BuildTools.targets" PackagePath="build\$(PackageId).targets" Pack="true" />
<_PackageFiles Include="multitargeting.props" PackagePath="buildMultiTargeting\$(PackageId).props" Pack="true" />
<_PackageFiles Include="multitargeting.targets" PackagePath="buildMultiTargeting\$(PackageId).targets" Pack="true" />
<_PackageFiles Include="T4.BuildTools.targets.buildschema.json" PackagePath="build\$(PackageId).targets.buildschema.json" Pack="true" />
</ItemGroup>
</Target>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<TextTransformTaskAssembly Condition="'$(TextTransformTaskAssembly)'=='' And '$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\buildTasks\netcoreapp2.1\Mono.TextTemplating.Build.dll</TextTransformTaskAssembly>
<TextTransformTaskAssembly Condition="'$(TextTransformTaskAssembly)'=='' And '$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\buildTasks\net472\Mono.TextTemplating.Build.dll</TextTransformTaskAssembly>
<TextTransformTaskAssembly Condition="'$(TextTransformTaskAssembly)'=='' And '$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\buildTasks\net6.0\Mono.TextTemplating.Build.dll</TextTransformTaskAssembly>
<TextTransformTaskAssembly Condition="'$(TextTransformTaskAssembly)'=='' And '$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\buildTasks\net48\Mono.TextTemplating.Build.dll</TextTransformTaskAssembly>
</PropertyGroup>

<UsingTask AssemblyFile="$(TextTransformTaskAssembly)" TaskName="TextTransform" />
Expand Down
6 changes: 4 additions & 2 deletions Mono.TextTemplating.Build/multitargeting.props
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<Project>
<Import Project="..\build\Mono.TextTemplating.Build.props" />
<Project>
<!--
<Import Project="..\build\$(MSBuildThisFileName).props" />
-->
</Project>
6 changes: 4 additions & 2 deletions Mono.TextTemplating.Build/multitargeting.targets
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<Project>
<Import Project="..\build\Mono.TextTemplating.Build.targets" />
<Project>
<!--
<Import Project="..\build\$(MSBuildThisFileName).targets" />
-->
</Project>
3 changes: 2 additions & 1 deletion dotnet-t4/dotnet-t4.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>t4</AssemblyName>
<PackageId>dotnet-t4</PackageId>
<PackAsTool>True</PackAsTool>
<ToolCommandName>t4</ToolCommandName>
<RollForward>LatestMajor</RollForward>
<Description>Command-line tool for processing T4 templates, a general-purpose way to generate text or code files using C#</Description>
<ToolCommandName>t4</ToolCommandName>
<RootNamespace>Mono.TextTemplating</RootNamespace>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down

0 comments on commit 3e3b932

Please sign in to comment.