gpt4 book ai didi

nuget - 如何从 nuget 包中排除文件夹

转载 作者:行者123 更新时间:2023-12-03 01:15:22 24 4
gpt4 key购买 nike

我正在使用 Octopack/Nuspec 文件来构建我的 nuget 包。

我想排除项目中存在的某些文件夹。例如“obj”文件。我一直在尝试让排除标签发挥作用,但没有任何运气。 nuget 文件已构建,但文件夹仍然存在。

遗憾的是,网上的所有示例都特​​定于文件类型,而不是文件夹。

<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Foo</id>
<title>Foo</title>
<version>$version$</version>
<authors>NA</authors>
<owners>NA</owners>
<licenseUrl>http://Foo</licenseUrl>
<projectUrl>http://Foo</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Foo</description>
<releaseNotes>NA</releaseNotes>
</metadata>
<files>
<file src="obj\**\*.*" exclude="*.*" />
</files>
</package>

最佳答案

我需要创建一个 WebApplication,但使用“CodeFile”属性将其部署为标准 ASP.NET 网站。

这基本上是为了更新标准 ADFS 登录站点中的页面。

<files>
<file src="**" exclude="**\*.dll;**\*.designer.cs;**\*.csproj;**\*.pdb;**\*.user;**\*.vspscc;bin\*.cs;bin\*.aspx;bin\*.config;bin\*.asax;bin\*.pubxml" />
</files>

关于nuget - 如何从 nuget 包中排除文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14452608/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com