Skip to content

Commit 7407f5b

Browse files
committed
Rename analyzer targets to make scenario more explicit
We might have sample targets for dotnet tools, for example.
1 parent 17fcb73 commit 7407f5b

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

samples/dotnet/Analyzer/Analyzer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PublishRepositoryUrl>true</PublishRepositoryUrl>
99
<MergeAnalyzerAssemblies>false</MergeAnalyzerAssemblies>
1010
<MergeAnalyzerAssemblies Condition="'$(CI)' == 'true'">true</MergeAnalyzerAssemblies>
11-
<CustomAfterMicrosoftCSharpTargets>$(MSBuildThisFileDirectory)..\SponsorLink.targets</CustomAfterMicrosoftCSharpTargets>
11+
<CustomAfterMicrosoftCSharpTargets>$(MSBuildThisFileDirectory)..\SponsorLink.Analyzer.targets</CustomAfterMicrosoftCSharpTargets>
1212
<ImplicitUsings>disable</ImplicitUsings>
1313
<FundingPackageId>SponsorableLib</FundingPackageId>
1414
</PropertyGroup>
File renamed without changes.

samples/dotnet/SponsorLink/SponsorLink.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</ItemGroup>
3636

3737
<ItemGroup>
38-
<None Include="..\SponsorLink.targets" Link="SponsorLink.targets" />
38+
<None Include="..\SponsorLink.Analyzer.targets" Link="SponsorLink.Analyzer.targets" />
3939
</ItemGroup>
4040

4141
<Target Name="EmitFunding" BeforeTargets="GenerateMSBuildEditorConfigFileShouldRun" Inputs="$(MSBuildAllProjects)" Outputs="$(IntermediateOutputPath)SponsorLink.g.cs">

samples/dotnet/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A project can include all the necessary files by using the [dotnet-file](https:/
1313
tool and sync all files to a folder, such as:
1414

1515
```shell
16-
dotnet file add https://github.com/devlooped/SponsorLink/tree/main/samples/dotnet src/SponsorLink/
16+
dotnet file add https://github.com/devlooped/SponsorLink/tree/main/samples/dotnet/ src/SponsorLink/
1717
```
1818

1919
Including the analyzer and targets in a project involves two steps.
@@ -23,7 +23,7 @@ Including the analyzer and targets in a project involves two steps.
2323
```xml
2424
<PropertyGroup>
2525
...
26-
<CustomAfterMicrosoftCSharpTargets>$(MSBuildThisFileDirectory)..\SponsorLink\SponsorLink.targets</CustomAfterMicrosoftCSharpTargets>
26+
<CustomAfterMicrosoftCSharpTargets>$(MSBuildThisFileDirectory)..\SponsorLink\SponsorLink.Analyzer.targets</CustomAfterMicrosoftCSharpTargets>
2727
</PropertyGroup>
2828
```
2929

0 commit comments

Comments
 (0)