Skip to content

Commit 505dc84

Browse files
committed
Initial progress on Kiota generator publishing
1 parent 8f76594 commit 505dc84

4 files changed

Lines changed: 27 additions & 5 deletions

File tree

src/features/Riverside.CompilerPlatform.Features.Kiota/Kiota.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
</Target>
2121

2222
<Target Name="Kiota_ValidateLanguageAndFramework" BeforeTargets="CoreCompile">
23+
<ItemGroup>
24+
<Analyzer Include="$(MSBuildThisFileDirectory\..\analyzers\cs\Riverside.CompilerPlatform.CSharp.Features.Kiota.dll" />
25+
</ItemGroup>
26+
2327
<ItemGroup>
2428
<_Kiota_TargetFramework Include="$(TargetFramework)" Condition="'$(TargetFramework)' != ''" />
2529
<_Kiota_TargetFramework Include="$(TargetFrameworks)" Condition="'$(TargetFrameworks)' != ''" />

src/features/Riverside.CompilerPlatform.Features.Kiota/Riverside.CompilerPlatform.Features.Kiota.csproj

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<Configurations>CSharp</Configurations>
6+
<IsRoslynComponent>true</IsRoslynComponent>
7+
<IncludeBuildOutput>false</IncludeBuildOutput>
8+
<NoWarn>$(NoWarn);NU5128</NoWarn>
69
</PropertyGroup>
710

811
<ItemGroup>
9-
<ProjectReference Include="$(ExtensionsDirectory)\Riverside.CompilerPlatform.SourceGenerators\Riverside.CompilerPlatform.SourceGenerators.csproj" />
10-
<ProjectReference Include="$(ExtensionsDirectory)\Riverside.CompilerPlatform.Extensions\Riverside.CompilerPlatform.Extensions.csproj" />
12+
<ProjectReference Include="$(ExtensionsDirectory)\Riverside.CompilerPlatform.SourceGenerators\Riverside.CompilerPlatform.SourceGenerators.csproj" PrivateAssets="all" />
13+
<ProjectReference Include="$(ExtensionsDirectory)\Riverside.CompilerPlatform.Extensions\Riverside.CompilerPlatform.Extensions.csproj" PrivateAssets="all" />
1114
</ItemGroup>
1215

1316
<ItemGroup>
@@ -22,4 +25,17 @@
2225
</PackageReference>
2326
</ItemGroup>
2427

28+
<Target Name="PackKiotaAnalyzer" BeforeTargets="_GetPackageFiles">
29+
<ItemGroup>
30+
<None Include="$(TargetPath)" Pack="true" PackagePath="analyzers/cs" Visible="false" />
31+
<None Include="$(TargetDir)$(AssemblyName).pdb" Pack="true" PackagePath="analyzers/cs" Visible="false" Condition="Exists('$(TargetDir)$(AssemblyName).pdb')" />
32+
<None
33+
Include="@(ReferenceCopyLocalPaths)"
34+
Pack="true"
35+
PackagePath="analyzers/cs"
36+
Visible="false"
37+
Condition="'%(ReferenceCopyLocalPaths.Extension)' == '.dll' and '%(ReferenceCopyLocalPaths.FileName)' != '$(AssemblyName)' and $([System.String]::Copy('%(ReferenceCopyLocalPaths.FileName)').StartsWith('Riverside.CompilerPlatform.', System.StringComparison.OrdinalIgnoreCase))" />
38+
</ItemGroup>
39+
</Target>
40+
2541
</Project>

tests/Riverside.CompilerPlatform.Features.Tests/Lapse.json renamed to tests/Riverside.CompilerPlatform.Features.Tests/Lapse12345.json

File renamed without changes.

tests/Riverside.CompilerPlatform.Features.Tests/Riverside.CompilerPlatform.Features.Tests.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,28 @@
33
<PropertyGroup>
44
<Configurations>VisualBasic;CSharp</Configurations>
55
<TargetFramework>netstandard2.0</TargetFramework>
6+
<LangVersion>14.0</LangVersion>
67
</PropertyGroup>
78

89
<ItemGroup>
910
<Compile Remove="$(ExtensionsDirectory)\GlobalUsings.cs" />
1011
</ItemGroup>
1112

1213
<ItemGroup>
13-
<!--<ProjectReference Include="$(FeaturesDirectory)\Riverside.CompilerPlatform.Features.DynamicCast\Riverside.CompilerPlatform.Features.DynamicCast.csproj" OutputItemType="Analyzer" />-->
14+
<!--<ProjectReference Include="$(FeaturesDirectory)\Riverside.CompilerPlatform.Features.DynamicCast\Riverside.CompilerPlatform.Features.DynamicCast.csproj" OutputItemType="Analyzer" />
1415
<ProjectReference Include="$(FeaturesDirectory)\Riverside.CompilerPlatform.Features.Kiota\Riverside.CompilerPlatform.Features.Kiota.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
1516
<ProjectReference Include="$(ExtensionsDirectory)\Riverside.CompilerPlatform.SourceGenerators\Riverside.CompilerPlatform.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
16-
<ProjectReference Include="$(ExtensionsDirectory)\Riverside.CompilerPlatform.Extensions\Riverside.CompilerPlatform.Extensions.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
17+
<ProjectReference Include="$(ExtensionsDirectory)\Riverside.CompilerPlatform.Extensions\Riverside.CompilerPlatform.Extensions.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />-->
1718
</ItemGroup>
1819

1920
<ItemGroup>
2021
<PackageReference Include="Microsoft.Kiota.Authentication.Azure" Version="1.21.2" />
2122
<PackageReference Include="Microsoft.Kiota.Bundle" Version="1.21.2" />
23+
<PackageReference Include="Riverside.CompilerPlatform.CSharp.Features.Kiota" Version="1.5.1" PrivateAssets="all" />
2224
</ItemGroup>
2325

2426
<ItemGroup>
25-
<AdditionalFiles Include="Lapse.json" />
27+
<AdditionalFiles Include="Lapse12345.json" />
2628
</ItemGroup>
2729

2830
</Project>

0 commit comments

Comments
 (0)