我有.NetStandard
图书馆。我将在.NetFramework
和.NetCoreApp
应用程序中使用它。
它使用System.Configuration.ConfigurationManager
包来处理配置文件。我需要在安装库期间转换这些配置文件。
我找到了两种方法:
tools
nuget 包中的文件夹,其中包含install.ps1
文件content
app.config.install.xdt
里面有文件的文件夹
它们都不起作用 - nuget 不运行install.ps1
,nuget 不转换App.config
。
csproj 有一段代码:
<ItemGroup>
<Content Include="Content\app.config.install.xdt">
<PackagePath>content</PackagePath>
</Content>
</ItemGroup>
Nuget 包包含这个文件......所以我不知道为什么它不起作用。
这个问题与.NetStandard
? 我做错了什么?