无法获取 Visual Studio 的“发布 Web 应用程序”去工作
我在 Visual Studio 2010 中将一个小型 Web 项目转换为 Web 应用程序。
当我通过 FTP 发布该应用程序时,它将删除目标位置的所有内容。就是这样...我的文件都没有上传。
现在,如果我选择“用本地副本替换匹配的文件”,它会上传我的所有文件,但它会运行我的构建前/构建后命令,但从不上传生成的文件(构建事件创建我的 JS 文件的 .min.js 版本)。
我认为无论我在做什么……我都做错了。
请帮助我。
更新
所以,我的 JS 文件的 .min.js 版本实际上并不在项目中。它们在每次构建时都成功创建...但它们没有显示在解决方案资源管理器中。所以,我把它们放在那里,现在可以正常工作了。
现在我的问题是我不想在解决方案资源管理器中看到我的发布版本的 .min.js 文件......永远。我是否只需要处理它或者我缺少什么?
I converted a small Web Project to a Web Application in Visual Studio 2010.
When I publish the application via FTP it will delete everything at the destination. And thats it...none of my files get uploaded.
Now, If I select "Replace matching files with local copies" it uploads all my files but it does run my Pre/Post Build commands but never uploads the resulting files (the Build Events create .min.js versions of my JS files).
I figure that whatever I'm doing...I'm doing it wrong.
Help me please.
UPDATE
So, the .min.js versions of my JS files weren't actually in the project. They were created successfully on each build...but they didn't show up in the Solution Explorer. So, I put them there and now it works okay.
Now my problem is that I don't want to see my Release build's .min.js files in Solution Explorer...ever. Do I just have to deal with it or is there something I am missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,答案是“添加>现有项目”到项目中,以在项目中包含我的脚本的缩小版本。
至于另一个问题:“我的问题是,我不想在解决方案资源管理器中看到我的发布版本的 .min.js 文件......我是否只需要处理它,或者是否有我遗漏的东西?”
我将选择“我只需要处理它”作为答案。
So, the answer was to "Add > Existing Item" to the project to include the minified versions of my scripts in the project.
As for the other question: "ow my problem is that I don't want to see my Release build's .min.js files in Solution Explorer...ever. Do I just have to deal with it or is there something I am missing?"
I'm going to go with "I just have to deal with it" as the answer.