控制在当前情况下不可用

时间:2023-01-02 16:56:57

I Applied a patch to a asp.net page using the tortoise svn "Apply Patch" command. The patch was created using the "Create patch" command.

我使用tortoise svn“Apply Patch”命令将补丁应用到asp.net页面。该补丁是使用“创建补丁”命令创建的。

The patch added a label control to the aspx page and some references to it in the codebehind. Now the solution just wont build unless I build the page seperately first. Sometimes even that wont work.

该补丁为aspx页面添加了一个标签控件,并在代码隐藏中添加了一些引用。现在解决方案不会构建,除非我首先单独构建页面。有时甚至不会工作。

The page is perfectly valid asp.net and c# code that build and runs often. The only difference is that the code is added outside visualstudio, in tortoisemerge.

该页面是完全有效的asp.net和c#代码,可以经常构建和运行。唯一的区别是代码是在visualstudio之外的tortoisemerge中添加的。

Any fixes

Comment: The file was already in the project. its just that a new control was added outside vs

评论:该文件已在项目中。只是在外面添加了一个新控件

2 个解决方案

#1


ask a silly question:)

问一个愚蠢的问题:)

you say it was added outside of VS. So have you included the files in your project / solutions.

你说它是在VS之外添加的。那么您是否已将文件包含在项目/解决方案中。

#2


I cant explain why, but the problem was fixed after getting a fresh working copy from svn

我无法解释原因,但从svn获得一份新的工作副本后问题得到解决

#1


ask a silly question:)

问一个愚蠢的问题:)

you say it was added outside of VS. So have you included the files in your project / solutions.

你说它是在VS之外添加的。那么您是否已将文件包含在项目/解决方案中。

#2


I cant explain why, but the problem was fixed after getting a fresh working copy from svn

我无法解释原因,但从svn获得一份新的工作副本后问题得到解决