- <Project Sdk="Microsoft.NET.Sdk.Desktop">
- <PropertyGroup>
- <AssemblyName>xxxxxxAssemblyName>
- <GenerateAssemblyInfo>FalseGenerateAssemblyInfo>
- <UseWindowsForms>TrueUseWindowsForms>
- <TargetFramework>net20TargetFramework>
- PropertyGroup>
- <PropertyGroup>
- <LangVersion>7LangVersion>
- <AllowUnsafeBlocks>TrueAllowUnsafeBlocks>
- PropertyGroup>
- <PropertyGroup>
- <RootNamespace />
- PropertyGroup>
- <ItemGroup>
- <None Remove="xxxxxx.xxxxxx.png" />
- <EmbeddedResource Include="xxxxxx.xxxxxx.png" />
- ItemGroup>
- <ItemGroup>
- <Reference Include="System.Design" />
- ItemGroup>
- Project>
用ILSpy反编译生成的代码,用VS2017无法打开项目,抛出错误:
Project file is incomplete. Expected imports are missing
打开.csproj文件,将第一行后面的Desktop去掉改为:
<Project Sdk="Microsoft.NET.Sdk">
即可解决问题。