c# - 为什么我的 .net sdk 样式项目在解决方案资源管理器中显示这么多文件?
问题描述
我是 SDK 样式项目格式的新手,我只有几个 NuGet PackageReferences。一切正常,直到我认为我弄乱了我支持的平台/构建配置。
这是我的 *.csproj 文件内容:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net40;net48;</TargetFrameworks>
<Platforms>x64</Platforms>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<Authors>myself</Authors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net40|x86'">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net40|x64'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Accusoft.ImageGear.PDF" Version="24.14.0" />
<PackageReference Include="Accusoft.ImageGear.Recognition" Version="24.14.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Consoto.SimpleProj.Core\Consoto.SimpleProj.Core.csproj" />
</ItemGroup>
<ItemGroup>
<NativeLibs Remove="Helpers.cs" />
</ItemGroup>
<ItemGroup>
<NativeLibs Remove="README.md" />
</ItemGroup>
<ItemGroup>
<NativeLibs Remove="Properties\Settings.settings" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
</Project>
这是实际的项目目录:
解决方案
推荐阅读
- python - 如何在运行 Jenkins CI 管道时屏蔽作为用户输入传递的密码?
- node.js - 如何使用对话流实现获取设备精确位置
- r - R ggplot2:尽管位置= position_dodge(0.9),但标签不在geom_bar上的躲避位置
- javascript - 平滑滚动不适用于动画鼠标向下滚动按钮
- c# - 如何区分 lambda 表达式中的鼠标按钮
- javascript - 在单个任务中异步运行 gulp 方法
- c++ - 两个二项式系数模 10^9 + 7 的 GCD
- php - kubernetes php nginx 部署分享量
- kubernetes - Helm 存储库在使用 Jenkins 和 Kubernetes 的 CI/CD 管道中的作用
- .net - 为什么这个对象的唯一引用设置为空后,它没有变成垃圾?