Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox3 #1820

Closed
wants to merge 2 commits into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" />
</ItemGroup>

<Target Name="SetBuildVer" AfterTargets="GetBuildVersion" BeforeTargets="SetCloudBuildVersionVars;SetCloudBuildNumberWithVersion">
<PropertyGroup>
<PropertyGroup>
<Version>$(BuildVersion)</Version>
<AssemblyVersion>$(BuildVersionSimple)</AssemblyVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" PrivateAssets="all" />
</ItemGroup>

<Target Name="SetBuildVer" AfterTargets="GetBuildVersion" BeforeTargets="SetCloudBuildVersionVars;SetCloudBuildNumberWithVersion">
Expand Down
18 changes: 18 additions & 0 deletions Refit.sln
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Refit.Benchmarks", "Refit.B
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Refit.GeneratorTests", "Refit.GeneratorTests\Refit.GeneratorTests.csproj", "{CE7894EA-D411-494A-BA8B-1C231D45025D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sandbox3", "Sandbox3\Sandbox3.csproj", "{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -192,6 +194,22 @@ Global
{CE7894EA-D411-494A-BA8B-1C231D45025D}.Release|x64.Build.0 = Release|Any CPU
{CE7894EA-D411-494A-BA8B-1C231D45025D}.Release|x86.ActiveCfg = Release|Any CPU
{CE7894EA-D411-494A-BA8B-1C231D45025D}.Release|x86.Build.0 = Release|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Debug|ARM.ActiveCfg = Debug|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Debug|ARM.Build.0 = Debug|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Debug|x64.ActiveCfg = Debug|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Debug|x64.Build.0 = Debug|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Debug|x86.ActiveCfg = Debug|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Debug|x86.Build.0 = Debug|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Release|Any CPU.Build.0 = Release|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Release|ARM.ActiveCfg = Release|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Release|ARM.Build.0 = Release|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Release|x64.ActiveCfg = Release|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Release|x64.Build.0 = Release|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Release|x86.ActiveCfg = Release|Any CPU
{C974C7E5-71DF-4404-B5E2-58FB81A6E65A}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
14 changes: 14 additions & 0 deletions Sandbox3/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// See https://aka.ms/new-console-template for more information

using Refit;

var gitHubApi = RestService.For<IGitHubApi>("https://api.github.com");
Console.WriteLine("Success?");

public interface IGitHubApi
{
[Get("/users/{user}")]
Task<User> GetUser(string user);
}

public record User();
15 changes: 15 additions & 0 deletions Sandbox3/Sandbox3.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\InterfaceStubGenerator.Roslyn40\InterfaceStubGenerator.Roslyn40.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true"/>
<ProjectReference Include="..\Refit\Refit.csproj" />
</ItemGroup>

</Project>
Loading