Skip to content

Commit 338fa9a

Browse files
Add small solution for source generator projects, add global usings to them
1 parent a51f903 commit 338fa9a

7 files changed

Lines changed: 69 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,4 @@ heads/
362362

363363
# We use slngen to generate solutions
364364
*.sln
365+
!CommunityToolkit.Tooling.sln

CommunityToolkit.Tooling.SampleGen.Tests/CommunityToolkit.Tooling.SampleGen.Tests.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<Nullable>enable</Nullable>
66

77
<IsPackable>false</IsPackable>
8+
<LangVersion>preview</LangVersion>
89
</PropertyGroup>
910

11+
<ItemGroup>
12+
<Compile Include="..\GlobalUsings.cs" Link="GlobalUsings.cs" />
13+
</ItemGroup>
14+
1015
<ItemGroup>
1116
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.1" />
1217
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />

CommunityToolkit.Tooling.SampleGen/CommunityToolkit.Tooling.SampleGen.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<LangVersion>10.0</LangVersion>
88
</PropertyGroup>
99

10+
<ItemGroup>
11+
<Compile Include="..\GlobalUsings.cs" Link="GlobalUsings.cs" />
12+
</ItemGroup>
13+
1014
<ItemGroup>
1115
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" PrivateAssets="all" />
1216
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" PrivateAssets="all" />

CommunityToolkit.Tooling.TestGen.Tests/CommunityToolkit.Tooling.TestGen.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<IsPackable>false</IsPackable>
88
</PropertyGroup>
99

10+
<ItemGroup>
11+
<Compile Include="..\GlobalUsings.cs" Link="GlobalUsings.cs" />
12+
</ItemGroup>
13+
1014
<ItemGroup>
1115
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.1" />
1216
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />

CommunityToolkit.Tooling.TestGen/CommunityToolkit.Tooling.TestGen.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<LangVersion>10.0</LangVersion>
88
</PropertyGroup>
99

10+
<ItemGroup>
11+
<Compile Include="..\GlobalUsings.cs" Link="GlobalUsings.cs" />
12+
</ItemGroup>
13+
1014
<ItemGroup>
1115
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" PrivateAssets="all" />
1216
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" PrivateAssets="all" />

CommunityToolkit.Tooling.XamlNamedPropertyRelay/CommunityToolkit.Tooling.XamlNamedPropertyRelay.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<LangVersion>10.0</LangVersion>
88
</PropertyGroup>
99

10+
<ItemGroup>
11+
<Compile Include="..\GlobalUsings.cs" Link="GlobalUsings.cs" />
12+
</ItemGroup>
13+
1014
<ItemGroup>
1115
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" PrivateAssets="all" />
1216
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" PrivateAssets="all" />

CommunityToolkit.Tooling.sln

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommunityToolkit.Tooling.SampleGen", "CommunityToolkit.Tooling.SampleGen\CommunityToolkit.Tooling.SampleGen.csproj", "{D1A78C19-61B6-416F-926F-F0520B16ECEF}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommunityToolkit.Tooling.SampleGen.Tests", "CommunityToolkit.Tooling.SampleGen.Tests\CommunityToolkit.Tooling.SampleGen.Tests.csproj", "{48B8DA1F-17D9-4425-A7D5-8CF078042727}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommunityToolkit.Tooling.TestGen", "CommunityToolkit.Tooling.TestGen\CommunityToolkit.Tooling.TestGen.csproj", "{6101E286-908C-4D9E-87AB-5F4D36AF1BE2}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommunityToolkit.Tooling.TestGen.Tests", "CommunityToolkit.Tooling.TestGen.Tests\CommunityToolkit.Tooling.TestGen.Tests.csproj", "{FE42E6F5-6576-43C7-9A24-69CD93724D72}"
13+
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommunityToolkit.Tooling.XamlNamedPropertyRelay", "CommunityToolkit.Tooling.XamlNamedPropertyRelay\CommunityToolkit.Tooling.XamlNamedPropertyRelay.csproj", "{FE7981C9-6847-4A3F-A695-FB2A0A4C9B9A}"
15+
EndProject
16+
Global
17+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
18+
Debug|Any CPU = Debug|Any CPU
19+
Release|Any CPU = Release|Any CPU
20+
EndGlobalSection
21+
GlobalSection(SolutionProperties) = preSolution
22+
HideSolutionNode = FALSE
23+
EndGlobalSection
24+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
25+
{D1A78C19-61B6-416F-926F-F0520B16ECEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{D1A78C19-61B6-416F-926F-F0520B16ECEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{D1A78C19-61B6-416F-926F-F0520B16ECEF}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{D1A78C19-61B6-416F-926F-F0520B16ECEF}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{48B8DA1F-17D9-4425-A7D5-8CF078042727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{48B8DA1F-17D9-4425-A7D5-8CF078042727}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{48B8DA1F-17D9-4425-A7D5-8CF078042727}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{48B8DA1F-17D9-4425-A7D5-8CF078042727}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{6101E286-908C-4D9E-87AB-5F4D36AF1BE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{6101E286-908C-4D9E-87AB-5F4D36AF1BE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{6101E286-908C-4D9E-87AB-5F4D36AF1BE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{6101E286-908C-4D9E-87AB-5F4D36AF1BE2}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{FE42E6F5-6576-43C7-9A24-69CD93724D72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{FE42E6F5-6576-43C7-9A24-69CD93724D72}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{FE42E6F5-6576-43C7-9A24-69CD93724D72}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{FE42E6F5-6576-43C7-9A24-69CD93724D72}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{FE7981C9-6847-4A3F-A695-FB2A0A4C9B9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{FE7981C9-6847-4A3F-A695-FB2A0A4C9B9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{FE7981C9-6847-4A3F-A695-FB2A0A4C9B9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{FE7981C9-6847-4A3F-A695-FB2A0A4C9B9A}.Release|Any CPU.Build.0 = Release|Any CPU
45+
EndGlobalSection
46+
EndGlobal

0 commit comments

Comments
 (0)