-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathShowcase.csproj
38 lines (33 loc) · 1.64 KB
/
Showcase.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<!-- Tells the compiler to emit the code generated by Mediator.SourceGenerator as files in the project -->
<!-- This is useful for debugging purposes -->
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<!-- The path where the generated files will be placed -->
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
<ItemGroup>
<!-- Tells the compiler to ignore the generated files when compiling the project (it will still be part of the compilation) -->
<Compile Remove="$(CompilerGeneratedFilesOutputPath)/**/*.cs" />
<None Include="$(CompilerGeneratedFilesOutputPath)/**/*.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="$(DotNetVersion)" />
</ItemGroup>
<!-- Use Mediator from local git repo -->
<ItemGroup>
<ProjectReference Include="..\..\src\Mediator.SourceGenerator\Mediator.SourceGenerator.csproj" OutputItemType="Analyzer" />
<ProjectReference Include="..\..\src\Mediator\Mediator.csproj" />
</ItemGroup>
<!-- Uncomment below to use Mediator from NuGet -->
<!-- <ItemGroup>
<PackageReference Include="Mediator.SourceGenerator" Version="3.0.0-*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Mediator.Abstractions" Version="3.0.0-*" />
</ItemGroup> -->
</Project>