Skip to content

Commit

Permalink
Use packages instead
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Aug 31, 2023
1 parent cf4470e commit 6b3231e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
<OutputType>Library</OutputType>
<LangVersion>preview</LangVersion>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageId>HyperSharp.SourceGeneration</PackageId>
<!-- Suppresses the warnings about the package not having assemblies in lib/*/.dll.-->
<NoPackageAnalysis>true</NoPackageAnalysis>
<!-- Change the default location where NuGet will put the build output -->
<BuildOutputTargetFolder>tasks</BuildOutputTargetFolder>
</PropertyGroup>
<ItemGroup>
<!-- pack the props files -->
<Content Include="build/HyperSharp.SourceGeneration.props" PackagePath="build/HyperSharp.SourceGeneration.props" />
<Content Include="build/HyperSharp.SourceGeneration.targets" PackagePath="build/HyperSharp.SourceGeneration.targets" />
<Content Include="build/HyperSharp.SourceGeneration.props" PackagePath="build/" />
<Content Include="build/HyperSharp.SourceGeneration.targets" PackagePath="build/" />
</ItemGroup>
<ItemGroup>
<PackageReference Remove="Microsoft.SourceLink.GitHub" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<Project>
<UsingTask TaskName="HyperSharp.SourceGeneration.HyperStatusConstructorGenerator" AssemblyFile="$(MSBuildThisFileDirectory)/../tasks/netstandard2.0/HyperSharp.SourceGeneration.dll" />
<UsingTask TaskName="HyperSharp.SourceGeneration.HyperStatusConstructorGenerator" AssemblyFile="$(MSBuildThisFileDirectory)../tasks/netstandard2.0/HyperSharp.SourceGeneration.dll" />
</Project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<Target Name="SourceGenerate" BeforeTargets="CoreCompile">
<HyperStatusConstructorGenerator TargetFrameworks="net7.0;net8.0" ProjectRoot="$(ProjectRoot)" />
<Target Name="SourceGenerate" BeforeTargets="BeforeCompile">
<HyperSharp.SourceGeneration.HyperStatusConstructorGenerator TargetFrameworks="net7.0;net8.0" ProjectRoot="/home/lunar/Code/OoLunar/HyperSharp/" />
</Target>
</Project>

0 comments on commit 6b3231e

Please sign in to comment.