Skip to content

Commit 8bf0e0f

Browse files
committed
Re-enabled some stuff for testing
1 parent 8d28abd commit 8bf0e0f

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed

samples/Samples/Samples.csproj

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,9 @@
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
88

9-
<!-- <ItemGroup>
9+
<ItemGroup>
1010
<ProjectReference Include="..\..\src\PublicInterfaceGenerator\PublicInterfaceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
1111
<ProjectReference Include="..\..\src\PublicInterfaceGenerator.Attributes\PublicInterfaceGenerator.Attributes.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
12-
</ItemGroup>-->
13-
14-
<!--When compiling, generate the nuget so this unit tests project references that instead of the project directly-->
15-
<Target Name="CreateNuget" BeforeTargets="CoreCompile">
16-
<Exec Command="dotnet pack ../../src/PublicInterfaceGenerator/PublicInterfaceGenerator.csproj --configuration Debug" />
17-
</Target>
18-
19-
<ItemGroup>
20-
<!--Reference the nuget we generate so we test that like a normal user-->
21-
<PackageReference Include="ProgrammerAl.SourceGenerators.PublicInterfaceGenerator" Version="*" PrivateAssets="All" />
22-
</ItemGroup>
12+
</ItemGroup>
2313

2414
</Project>

src/PublicInterfaceGenerator.sln

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{72
1111
EndProject
1212
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PublicInterfaceGenerator.Attributes", "PublicInterfaceGenerator.Attributes\PublicInterfaceGenerator.Attributes.csproj", "{59953E27-6190-44CE-9244-DBA1566811F5}"
1313
EndProject
14+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Samples", "..\samples\Samples\Samples.csproj", "{2CD3B72B-1597-471F-AE24-1D7D6340A324}"
15+
EndProject
16+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests", "UnitTests\UnitTests.csproj", "{C15212B0-08B0-401D-A7BD-B340DE194195}"
17+
EndProject
1418
Global
1519
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1620
Debug|Any CPU = Debug|Any CPU
@@ -25,10 +29,22 @@ Global
2529
{59953E27-6190-44CE-9244-DBA1566811F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
2630
{59953E27-6190-44CE-9244-DBA1566811F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
2731
{59953E27-6190-44CE-9244-DBA1566811F5}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{2CD3B72B-1597-471F-AE24-1D7D6340A324}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{2CD3B72B-1597-471F-AE24-1D7D6340A324}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{2CD3B72B-1597-471F-AE24-1D7D6340A324}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{2CD3B72B-1597-471F-AE24-1D7D6340A324}.Release|Any CPU.Build.0 = Release|Any CPU
36+
{C15212B0-08B0-401D-A7BD-B340DE194195}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37+
{C15212B0-08B0-401D-A7BD-B340DE194195}.Debug|Any CPU.Build.0 = Debug|Any CPU
38+
{C15212B0-08B0-401D-A7BD-B340DE194195}.Release|Any CPU.ActiveCfg = Release|Any CPU
39+
{C15212B0-08B0-401D-A7BD-B340DE194195}.Release|Any CPU.Build.0 = Release|Any CPU
2840
EndGlobalSection
2941
GlobalSection(SolutionProperties) = preSolution
3042
HideSolutionNode = FALSE
3143
EndGlobalSection
44+
GlobalSection(NestedProjects) = preSolution
45+
{2CD3B72B-1597-471F-AE24-1D7D6340A324} = {7235A503-C7CD-4028-88F4-15DBD7371471}
46+
{C15212B0-08B0-401D-A7BD-B340DE194195} = {A7E17D8D-F489-4CD6-85DA-03BEE1BDD217}
47+
EndGlobalSection
3248
GlobalSection(ExtensibilityGlobals) = postSolution
3349
SolutionGuid = {1CC6B6F7-942B-4373-B782-4903EAE16A97}
3450
EndGlobalSection

src/UnitTests/UnitTests.csproj

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
</PackageReference>
3030
</ItemGroup>
3131

32-
<!-- <ItemGroup>
32+
<ItemGroup>
3333
<ProjectReference Include="..\PublicInterfaceGenerator.Attributes\PublicInterfaceGenerator.Attributes.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
3434
<ProjectReference Include="..\PublicInterfaceGenerator\PublicInterfaceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
35-
</ItemGroup>-->
35+
</ItemGroup>
3636

3737
<PropertyGroup>
3838
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
@@ -42,16 +42,4 @@
4242
<Using Include="Xunit" />
4343
</ItemGroup>
4444

45-
<!--When compiling, generate the nuget so this unit tests project references that instead of the project directly-->
46-
<Target Name="CreateNuget" BeforeTargets="CoreCompile">
47-
<Exec Command="dotnet pack ../PublicInterfaceGenerator/PublicInterfaceGenerator.csproj --configuration Debug" />
48-
</Target>
49-
50-
<ItemGroup>
51-
<!--Reference the nuget we generate so we test that like a normal user-->
52-
<PackageReference Include="ProgrammerAl.SourceGenerators.PublicInterfaceGenerator" Version="*" PrivateAssets="All" />
53-
54-
<!--Still have to refrence the source generator project because the unit tests need to reference the source generator class-->
55-
<!--<ProjectReference Include="..\PublicInterfaceGenerator\PublicInterfaceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />-->
56-
</ItemGroup>
5745
</Project>

0 commit comments

Comments
 (0)