Skip to content

Commit e3d1e2a

Browse files
Merge pull request #3 from drasticactions/merge-source-gen
Merge SourceGen library into Carpanet
2 parents 663a6f8 + ba2fd92 commit e3d1e2a

11 files changed

Lines changed: 382 additions & 294 deletions

File tree

.github/workflows/nuget.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
dotnet pack src/CarpaNet/CarpaNet.csproj --configuration Release --no-build --output nupkg
3232
dotnet pack src/CarpaNet.OAuth/CarpaNet.OAuth.csproj --configuration Release --no-build --output nupkg
3333
dotnet pack src/CarpaNet.Jetstream/CarpaNet.Jetstream.csproj --configuration Release --no-build --output nupkg
34-
cp src/CarpaNet.SourceGen/bin/Release/*.nupkg nupkg/
3534
3635
- name: Upload Nuget
3736
uses: actions/upload-artifact@v4

apps/StandardSiteGen/StandardSiteGen.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</PackageReference>
2828
</ItemGroup>
2929

30-
<Import Project="..\..\src\CarpaNet.SourceGen\build\CarpaNet.SourceGen.targets" />
30+
<Import Project="..\..\src\CarpaNet\build\CarpaNet.targets" />
3131

3232
<ItemGroup>
3333
<LexiconResolve Include="com.atproto.repo.listRecords" />

samples/AuthTest/AuthTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
2121
</ItemGroup>
2222

23-
<Import Project="..\..\src\CarpaNet.SourceGen\build\CarpaNet.SourceGen.targets" />
23+
<Import Project="..\..\src\CarpaNet\build\CarpaNet.targets" />
2424

2525
<ItemGroup>
2626
<LexiconResolve Include="app.bsky.actor.getProfile" />

samples/BSkyOAuth/BSkyOAuth.MacCatalyst/BSkyOAuth.MacCatalyst.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
ReferenceOutputAssembly="false" />
3030
</ItemGroup>
3131

32-
<Import Project="../../../src/CarpaNet.SourceGen/build/CarpaNet.SourceGen.targets" />
32+
<Import Project="../../../src/CarpaNet/build/CarpaNet.targets" />
3333

3434
<ItemGroup>
3535
<LexiconResolve Include="app.bsky.actor.getProfile" />

samples/FirehoseTest/FirehoseTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ReferenceOutputAssembly="false" />
1818
</ItemGroup>
1919

20-
<Import Project="..\..\src\CarpaNet.SourceGen\build\CarpaNet.SourceGen.targets" />
20+
<Import Project="..\..\src\CarpaNet\build\CarpaNet.targets" />
2121

2222
<ItemGroup>
2323
<LexiconResolve Include="com.atproto.sync.subscribeRepos" />

samples/RemoteResolution/RemoteResolution.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
<LexiconResolve Include="site.standard.graph.subscription" />
2828
</ItemGroup>
2929

30-
<Import Project="..\..\src\CarpaNet.SourceGen\build\CarpaNet.SourceGen.targets" />
30+
<Import Project="..\..\src\CarpaNet\build\CarpaNet.targets" />
3131

3232
</Project>

src/CarpaNet.SourceGen/CarpaNet.SourceGen.csproj

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
@@ -8,46 +8,19 @@
88

99
<IsRoslynComponent>true</IsRoslynComponent>
1010
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
11-
<IncludeBuildOutput>false</IncludeBuildOutput>
12-
13-
<PackageId>CarpaNet.SourceGen</PackageId>
14-
<Description>Generate bindings of ATProtocol Lexicon files for CarpaNet.</Description>
15-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
16-
<DevelopmentDependency>true</DevelopmentDependency>
17-
<NoPackageAnalysis>true</NoPackageAnalysis>
18-
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
11+
<IsPackable>false</IsPackable>
1912
</PropertyGroup>
2013

2114
<ItemGroup>
2215
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="all" />
2316
<PackageReference Include="System.Text.Json" PrivateAssets="all" GeneratePathProperty="true" />
2417
</ItemGroup>
2518

26-
<ItemGroup Condition=" ('$(IsPackable)' == 'true') or ('$(PackAsTool)' == 'true') ">
27-
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath=""
28-
Visible="false" />
29-
</ItemGroup>
30-
31-
<ItemGroup>
32-
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
33-
<None Include="$(PkgSystem_Text_Json)\lib\netstandard2.0\System.Text.Json.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
34-
</ItemGroup>
35-
3619
<ItemGroup>
3720
<ProjectReference Include="..\CarpaNet.BuildTasks\CarpaNet.BuildTasks.csproj"
3821
ReferenceOutputAssembly="false"
39-
SkipGetTargetFrameworkProperties="true" />
40-
</ItemGroup>
41-
42-
<ItemGroup>
43-
<None Include="build\CarpaNet.SourceGen.targets" Pack="true" PackagePath="build\" Visible="false" />
44-
<None Include="build\CarpaNet.SourceGen.targets" Pack="true" PackagePath="buildTransitive\" Visible="false" />
45-
</ItemGroup>
46-
47-
<!-- Pack the build task DLL into the NuGet package -->
48-
<ItemGroup>
49-
<None Include="..\CarpaNet.BuildTasks\bin\$(Configuration)\net8.0\CarpaNet.BuildTasks.dll"
50-
Pack="true" PackagePath="tasks\net8.0\" Visible="false" />
22+
SkipGetTargetFrameworkProperties="true"
23+
GlobalPropertiesToRemove="TargetFramework" />
5124
</ItemGroup>
5225

5326
<Import Project="..\..\Version.props" />

src/CarpaNet.SourceGen/README.md

Lines changed: 0 additions & 254 deletions
This file was deleted.

0 commit comments

Comments
 (0)