如何使用aspnet_compiler处理排除的文件? [英] How do you handle excluded files with aspnet_compiler?

查看:49
本文介绍了如何使用aspnet_compiler处理排除的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用aspnet_compiler将已经编译的项目从一个位置移动到另一个位置.我正在使用Subversion进行版本控制.

I'm trying to use aspnet_compiler to move a project that has already compiled from one location to another. I'm using Subversion for revision control.

该过程基本上使所有代码脱离Subversion,进行构建,然后调用aspnet_compiler.

The process basically gets all the code out of subversion, does a build, then calls aspnet_compiler.

当我有一个排除的ascx文件时,便出现了我的问题.该文件是最新代码的一部分,但是普通的编译器会忽略它,因此没有麻烦.但是,Aspnet_compiler崩溃了,因为它无法找到该特定控件的代码.

My problem comes into being when I've got an excluded ascx file. This file is part of the latest code, but the normal build compiler ignores it, so no trouble. Aspnet_compiler blows up, however, because it cannot find the code behind for that particular control.

我不确定是否

  • 我做对了;
  • 有一种方法可以从Subversion中获取正确的文件树
  • 有一种更简单的方法;或
  • 这是预料之中的,我每次都需要删除排除的文件.

我将不胜感激.

汤姆

推荐答案

这是预期的: Aspnet_compiler.exe 编译应用程序中的所有文件,而不查看项目文件.因此,它没有排除文件的任何概念.

This is expected: Aspnet_compiler.exe compiles all files in the application and does not look at the project file. Thus, it does not have any notion of an excluded file.

巴巴克·纳法斯(Babak Naffas)删除文件的建议可能是处理文件的最简单方法,而不是每次手动删除(或编写删除脚本的脚本).

Babak Naffas's suggestion of deleting the file is probably the easiest way of dealing with the file, rather than manually deleting it (or scripting its deletion) each time.

这篇关于如何使用aspnet_compiler处理排除的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆