Skip to content

Commit 0ea3757

Browse files
Modernize CSharpConsoleApp.csproj to SDK-style format
Converted CSharpConsoleApp.csproj from the legacy .NET Framework project format to the modern SDK-style format. Updated the target framework to net10.0, removed redundant property groups and references, and simplified the ProjectReference element. This streamlines the project file and aligns it with current .NET best practices.
1 parent 4c91085 commit 0ea3757

1 file changed

Lines changed: 3 additions & 46 deletions

File tree

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,19 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{B7602E54-8F45-4DC4-88B5-E11CDC7E8B41}</ProjectGuid>
3+
<TargetFramework>net10.0</TargetFramework>
84
<OutputType>Exe</OutputType>
95
<RootNamespace>ConsoleApp2</RootNamespace>
106
<AssemblyName>ConsoleApp2</AssemblyName>
11-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
12-
<FileAlignment>512</FileAlignment>
13-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14-
<TargetFrameworkProfile />
157
</PropertyGroup>
168
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<PlatformTarget>AnyCPU</PlatformTarget>
18-
<DebugSymbols>true</DebugSymbols>
19-
<DebugType>full</DebugType>
20-
<Optimize>false</Optimize>
21-
<OutputPath>bin\Debug\</OutputPath>
22-
<DefineConstants>DEBUG;TRACE</DefineConstants>
23-
<ErrorReport>prompt</ErrorReport>
24-
<WarningLevel>4</WarningLevel>
259
<DocumentationFile>bin\Debug\ConsoleApp2.xml</DocumentationFile>
2610
</PropertyGroup>
27-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28-
<PlatformTarget>AnyCPU</PlatformTarget>
29-
<DebugType>pdbonly</DebugType>
30-
<Optimize>true</Optimize>
31-
<OutputPath>bin\Release\</OutputPath>
32-
<DefineConstants>TRACE</DefineConstants>
33-
<ErrorReport>prompt</ErrorReport>
34-
<WarningLevel>4</WarningLevel>
35-
</PropertyGroup>
3611
<ItemGroup>
3712
<Reference Include="microsoft.visualbasic" />
38-
<Reference Include="System" />
39-
<Reference Include="System.Core" />
40-
<Reference Include="System.Xml.Linq" />
4113
<Reference Include="System.Data.DataSetExtensions" />
4214
<Reference Include="Microsoft.CSharp" />
43-
<Reference Include="System.Data" />
44-
<Reference Include="System.Net.Http" />
45-
<Reference Include="System.Xml" />
46-
</ItemGroup>
47-
<ItemGroup>
48-
<Compile Include="AnotherSharedNamespaceClass.cs" />
49-
<Compile Include="ユニコードのプログラム.cs" />
50-
<Compile Include="Properties\AssemblyInfo.cs" />
51-
</ItemGroup>
52-
<ItemGroup>
53-
<None Include="App.config" />
5415
</ItemGroup>
5516
<ItemGroup>
56-
<ProjectReference Include="..\CSharpNetStandardLib\CSharpNetStandardLib.csproj">
57-
<Project>{4de39d59-19c6-4e1e-910c-5ea8ba55348b}</Project>
58-
<Name>CSharpNetStandardLib</Name>
59-
</ProjectReference>
17+
<ProjectReference Include="..\CSharpNetStandardLib\CSharpNetStandardLib.csproj" />
6018
</ItemGroup>
61-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6219
</Project>

0 commit comments

Comments
 (0)