Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
amaltinsky committed May 17, 2022
0 parents commit 515f4e4
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CentralPackageVersions.sln
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
3 changes: 3 additions & 0 deletions Directory.Build.targets
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>
6 changes: 6 additions & 0 deletions Packages.props
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>
12 changes: 12 additions & 0 deletions Project1/Program.cs
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);
}
}
14 changes: 14 additions & 0 deletions Project1/Project1.csproj
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>
12 changes: 12 additions & 0 deletions Project2/Program.cs
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);
}
}
13 changes: 13 additions & 0 deletions Project2/Project2.csproj
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>

0 comments on commit 515f4e4

Please sign in to comment.