-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathOpenLibraryNET.csproj
59 lines (47 loc) · 2.33 KB
/
OpenLibraryNET.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<!--
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>0.1.2</Version>
<Title>OpenLibrary.NET</Title>
<RepositoryUrl>https://github.com/Luca3317/OpenLibrary.NET</RepositoryUrl>
<Description>A C# library for OpenLibrary by the InternetArchive</Description>
<Authors>Luca3317</Authors>
<PackageTags>internetarchive;openlibrary;library;book;isbn;</PackageTags>
<PackageProjectUrl>https://github.com/Luca3317/OpenLibrary.NET</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Company />
<DocumentationFile></DocumentationFile>
-->
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CodeGen>$(SolutionDir)code generation\</CodeGen>
</PropertyGroup>
<ItemGroup>
<None Remove=".editorconfig" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CodeGen)OpenLibraryNET.SourceGenerators\OpenLibraryNET.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CodeGen)OpenLibraryNET.GeneratorAttributes\OpenLibraryNET.GeneratorAttributes.csproj" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<Analyzer Include="$(CodeGen)OpenLibraryNET.Diagnostics\bin\$(Configuration)\$(TargetFramework)\OpenLibraryNET.Diagnostics.dll" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="Build">
<PropertyGroup>
<BuildCommand>"$(CodeGen)OpenLibraryNET.RemoveGeneratorAttributes\bin\$(Configuration)\$(TargetFramework)\OpenLibraryNET.RemoveGeneratorAttributes.exe"</BuildCommand>
<Argument1>"$(TargetPath)"</Argument1>
<Argument2>"$(CodeGen)OpenLibraryNET.GeneratorAttributes\bin\$(Configuration)\$(TargetFramework)\OpenLibraryNET.GeneratorAttributes.dll"</Argument2>
</PropertyGroup>
<Exec Command="$(BuildCommand) $(Argument1) $(Argument2)" ConsoleToMSBuild="true" LogStandardErrorAsError="true" WorkingDirectory="$(ProjectDir)" />
<Copy SourceFiles="$(TargetPath).modified" DestinationFiles="$(TargetPath)" OverwriteReadOnlyFiles="true" />
</Target>
</Project>