Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
dotnet pack src/CarpaNet/CarpaNet.csproj --configuration Release --no-build --output nupkg
dotnet pack src/CarpaNet.OAuth/CarpaNet.OAuth.csproj --configuration Release --no-build --output nupkg
dotnet pack src/CarpaNet.Jetstream/CarpaNet.Jetstream.csproj --configuration Release --no-build --output nupkg
cp src/CarpaNet.SourceGen/bin/Release/*.nupkg nupkg/

- name: Upload Nuget
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion apps/StandardSiteGen/StandardSiteGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</PackageReference>
</ItemGroup>

<Import Project="..\..\src\CarpaNet.SourceGen\build\CarpaNet.SourceGen.targets" />
<Import Project="..\..\src\CarpaNet\build\CarpaNet.targets" />

<ItemGroup>
<LexiconResolve Include="com.atproto.repo.listRecords" />
Expand Down
2 changes: 1 addition & 1 deletion samples/AuthTest/AuthTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<Import Project="..\..\src\CarpaNet.SourceGen\build\CarpaNet.SourceGen.targets" />
<Import Project="..\..\src\CarpaNet\build\CarpaNet.targets" />

<ItemGroup>
<LexiconResolve Include="app.bsky.actor.getProfile" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ReferenceOutputAssembly="false" />
</ItemGroup>

<Import Project="../../../src/CarpaNet.SourceGen/build/CarpaNet.SourceGen.targets" />
<Import Project="../../../src/CarpaNet/build/CarpaNet.targets" />

<ItemGroup>
<LexiconResolve Include="app.bsky.actor.getProfile" />
Expand Down
2 changes: 1 addition & 1 deletion samples/FirehoseTest/FirehoseTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ReferenceOutputAssembly="false" />
</ItemGroup>

<Import Project="..\..\src\CarpaNet.SourceGen\build\CarpaNet.SourceGen.targets" />
<Import Project="..\..\src\CarpaNet\build\CarpaNet.targets" />

<ItemGroup>
<LexiconResolve Include="com.atproto.sync.subscribeRepos" />
Expand Down
2 changes: 1 addition & 1 deletion samples/RemoteResolution/RemoteResolution.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
<LexiconResolve Include="site.standard.graph.subscription" />
</ItemGroup>

<Import Project="..\..\src\CarpaNet.SourceGen\build\CarpaNet.SourceGen.targets" />
<Import Project="..\..\src\CarpaNet\build\CarpaNet.targets" />

</Project>
35 changes: 4 additions & 31 deletions src/CarpaNet.SourceGen/CarpaNet.SourceGen.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
Expand All @@ -8,46 +8,19 @@

<IsRoslynComponent>true</IsRoslynComponent>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<IncludeBuildOutput>false</IncludeBuildOutput>

<PackageId>CarpaNet.SourceGen</PackageId>
<Description>Generate bindings of ATProtocol Lexicon files for CarpaNet.</Description>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<DevelopmentDependency>true</DevelopmentDependency>
<NoPackageAnalysis>true</NoPackageAnalysis>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="all" />
<PackageReference Include="System.Text.Json" PrivateAssets="all" GeneratePathProperty="true" />
</ItemGroup>

<ItemGroup Condition=" ('$(IsPackable)' == 'true') or ('$(PackAsTool)' == 'true') ">
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath=""
Visible="false" />
</ItemGroup>

<ItemGroup>
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(PkgSystem_Text_Json)\lib\netstandard2.0\System.Text.Json.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CarpaNet.BuildTasks\CarpaNet.BuildTasks.csproj"
ReferenceOutputAssembly="false"
SkipGetTargetFrameworkProperties="true" />
</ItemGroup>

<ItemGroup>
<None Include="build\CarpaNet.SourceGen.targets" Pack="true" PackagePath="build\" Visible="false" />
<None Include="build\CarpaNet.SourceGen.targets" Pack="true" PackagePath="buildTransitive\" Visible="false" />
</ItemGroup>

<!-- Pack the build task DLL into the NuGet package -->
<ItemGroup>
<None Include="..\CarpaNet.BuildTasks\bin\$(Configuration)\net8.0\CarpaNet.BuildTasks.dll"
Pack="true" PackagePath="tasks\net8.0\" Visible="false" />
SkipGetTargetFrameworkProperties="true"
GlobalPropertiesToRemove="TargetFramework" />
</ItemGroup>

<Import Project="..\..\Version.props" />
Expand Down
254 changes: 0 additions & 254 deletions src/CarpaNet.SourceGen/README.md

This file was deleted.

Loading
Loading