Skip to content

Commit

Permalink
Prepared for first release
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaos66 committed Jun 17, 2022
1 parent ee92654 commit 5b018a9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
29 changes: 29 additions & 0 deletions MSBuild.CopyLocal/Build/KC.MSBuild.CopyLocal.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<Project TreatAsLocalProperty="TaskFolder;TaskAssembly">
<PropertyGroup>
<TaskFolder>netstandard2.0</TaskFolder>
<TaskAssembly>$(MSBuildThisFileDirectory)..\tasks\$(TaskFolder)\KC.MSBuild.CopyLocal.dll</TaskAssembly>
</PropertyGroup>

<UsingTask TaskName="KC.MSBuild.CopyLocal.UpdateAssemblyList" AssemblyFile="$(TaskAssembly)" />

<Target Name="KCCopyLocalRuntime" AfterTargets="ResolvePackageAssets">
<ItemGroup>
<NativeCopyLocalItems Remove="%(NativeCopyLocalItems.Identity)" />
<RuntimeCopyLocalItems Remove="%(RuntimeCopyLocalItems.Identity)" />
<ResourceCopyLocalItems Remove="%(ResourceCopyLocalItems.Identity)" />
<RuntimeTargetsCopyLocalItems Remove="%(RuntimeTargetsCopyLocalItems.Identity)" />
</ItemGroup>

<UpdateAssemblyList
TargetFramework="$(TargetFramework)"
ProjectAssetsFile="$(ProjectAssetsFile)">
<Output TaskParameter="FixedRuntimeAssemblies" ItemName="RuntimeCopyLocalItems" />
</UpdateAssemblyList>
</Target>

<Target Name="KCCopyLocalPack" BeforeTargets="ResolveRuntimePackAssets">
<PropertyGroup>
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
</PropertyGroup>
</Target>
</Project>
18 changes: 17 additions & 1 deletion MSBuild.CopyLocal/MSBuild.CopyLocal.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@
<RepositoryUrl>https://github.com/KhaosCoders/MSBuild.CopyLocal</RepositoryUrl>
<PackageTags>msbuild;copy;local</PackageTags>
<PackageReleaseNotes>Initial release</PackageReleaseNotes>
<IncludeBuildOutput>false</IncludeBuildOutput>
<IncludeSymbols>false</IncludeSymbols>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<DevelopmentDependency>true</DevelopmentDependency>
<Version>0.0.1</Version>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\README.md">
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
Expand All @@ -29,4 +35,14 @@
<PackageReference Include="NuGet.ProjectModel" Version="6.2.1" />
</ItemGroup>

<Target Name="PackBuildOutputs" DependsOnTargets="SatelliteDllsProjectOutputGroup;DebugSymbolsProjectOutputGroup">
<ItemGroup>
<TfmSpecificPackageFile Include="$(ProjectDir)\Build\*.props" PackagePath="build" />
<TfmSpecificPackageFile Include="$(ProjectDir)\Build\*.props" PackagePath="buildMultiTargeting" />

<TfmSpecificPackageFile Include="$(TargetDir)\*.dll" PackagePath="tasks\.netstandard2.0" />
<TfmSpecificPackageFile Include="@(SatelliteDllsProjectOutputGroupOutput->'%(FinalOutputPath)')" PackagePath="tasks\.netstandard2.0\%(SatelliteDllsProjectOutputGroupOutput.Culture)\" />
</ItemGroup>
</Target>

</Project>

0 comments on commit 5b018a9

Please sign in to comment.