Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的构建系统中使用 webdeploy。我希望它能够从我的源代码文件中提取内容文件但跳过代码文件。我正在使用跳过规则:
"-skip:objectName=filePath,absolutePath=.*.cs$"
但它会跳过 .css 文件和 .cs 文件。我究竟做错了什么?
您确定您的 CSS 文件一开始就在您的包中吗?请记住,默认情况下,Visual Studio 仅打包/部署以下文件:
*proj
Build Action
Content
您可以在Project Properties -> Package/Publish Web -> Items to deploy
Project Properties -> Package/Publish Web -> Items to deploy
正则表达式不正确。这对我有用。
.*\.cs$