Skip to content

Commit 8c85aee

Browse files
committed
fix c#
1 parent 52a93a9 commit 8c85aee

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ swiftformat
5757

5858
foo
5959

60-
snippets
60+
/snippets

generators/src/main/java/com/algolia/codegen/cts/manager/CSharpCTSManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public void addTestsSupportingFiles(List<SupportingFile> supportingFiles) {
2828

2929
@Override
3030
public void addSnippetsSupportingFiles(List<SupportingFile> supportingFiles) {
31+
supportingFiles.add(new SupportingFile("snippets/src.csproj.mustache", "snippets/csharp/src/src.csproj"));
3132
supportingFiles.add(new SupportingFile("snippets/.gitignore.mustache", "snippets/csharp/.gitignore"));
3233
supportingFiles.add(new SupportingFile("snippets/Algolia.mustache", "snippets/csharp/Algolia.sln"));
3334
supportingFiles.add(new SupportingFile("snippets/dotnet-tools.mustache", "snippets/csharp/.config/dotnet-tools.json"));
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net8.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
<RootNamespace>Algolia</RootNamespace>
9+
<LangVersion>12</LangVersion>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<ProjectReference Include="..\..\..\clients\algoliasearch-client-csharp\algoliasearch\Algolia.Search.csproj" />
14+
</ItemGroup>
15+
16+
<ItemGroup>
17+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
18+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
19+
</ItemGroup>
20+
21+
<ItemGroup>
22+
<None Update="appsettings.json">
23+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
24+
</None>
25+
</ItemGroup>
26+
27+
</Project>

0 commit comments

Comments
 (0)