Skip to content

Instantly share code, notes, and snippets.

@huanlin
Last active March 18, 2018 13:10
Show Gist options
  • Save huanlin/5bc65f1801c54df9216f6bd9cc83132c to your computer and use it in GitHub Desktop.
Save huanlin/5bc65f1801c54df9216f6bd9cc83132c to your computer and use it in GitHub Desktop.
Porting csproj to .NET Core 2.0
<!-- 底下是準備要被替換的文字 -->
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B395A62E-B988-4370-AB66-D76A4FC49C9E}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ChineseConverter</RootNamespace>
<AssemblyName>tscc</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<!-- 把前面的內容替換成底下文字 -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<RootNamespace>ChineseConverter</RootNamespace>
<AssemblyName>tscc</AssemblyName>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment