-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 515f4e4
Showing
7 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project1", "Project1\Project1.csproj", "{DA947C58-AD7D-489D-9CA9-38A4B1BDEAAC}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project2", "Project2\Project2.csproj", "{D6195A00-7289-41C1-A302-9F730C7C6C06}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{DA947C58-AD7D-489D-9CA9-38A4B1BDEAAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{DA947C58-AD7D-489D-9CA9-38A4B1BDEAAC}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{DA947C58-AD7D-489D-9CA9-38A4B1BDEAAC}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{DA947C58-AD7D-489D-9CA9-38A4B1BDEAAC}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{D6195A00-7289-41C1-A302-9F730C7C6C06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{D6195A00-7289-41C1-A302-9F730C7C6C06}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{D6195A00-7289-41C1-A302-9F730C7C6C06}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{D6195A00-7289-41C1-A302-9F730C7C6C06}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Project> | ||
<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.1.3" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<PackageReference Update="System.Net.Http" Version="4.3.0"/> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class Project1 | ||
{ | ||
static readonly HttpClient client = new HttpClient(); | ||
|
||
static void Main() | ||
{ | ||
var response = client.GetAsync("http://www.github.com/").Result; | ||
response.EnsureSuccessStatusCode(); | ||
var responseBody = response.Content.ReadAsStringAsync().Result; | ||
Console.WriteLine(responseBody); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Net.Http"/> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class Project2 | ||
{ | ||
static readonly HttpClient client = new HttpClient(); | ||
|
||
static void Main() | ||
{ | ||
var response = client.GetAsync("http://www.github.com/").Result; | ||
response.EnsureSuccessStatusCode(); | ||
var responseBody = response.Content.ReadAsStringAsync().Result; | ||
Console.WriteLine(responseBody); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Net.Http"/> | ||
</ItemGroup> | ||
</Project> |