Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/305.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法在设计/代码模式下打开项目?_C#_Visual Studio 2012_User Controls - Fatal编程技术网

C# 无法在设计/代码模式下打开项目?

C# 无法在设计/代码模式下打开项目?,c#,visual-studio-2012,user-controls,C#,Visual Studio 2012,User Controls,如果有启动时检查许可证序列号的大软件包。 通常情况下,如果输入正确的许可证号码(真实或试用版),应用程序将无法启动 这里的问题是,如果我不提供许可证详细信息,我甚至无法在VisualStudio(设计或代码模式)中打开代码 我知道许可证表单(用户在其中输入许可证详细信息)是一种UserControl形式 问题是: VisualStudio的哪一部分定义了要在设计/代码窗口的打开窗体上运行的代码? 是csproj文件还是? 我知道post-build或pre-build任务,但在我打开包开始编码之

如果有启动时检查许可证序列号的大软件包。 通常情况下,如果输入正确的许可证号码(真实或试用版),应用程序将无法启动

这里的问题是,如果我不提供许可证详细信息,我甚至无法在VisualStudio(设计或代码模式)中打开代码

我知道许可证表单(用户在其中输入许可证详细信息)是一种UserControl形式

问题是:

VisualStudio的哪一部分定义了要在设计/代码窗口的打开窗体上运行的代码?

csproj
文件还是? 我知道
post-build
pre-build
任务,但在我打开包开始编码之前,此代码会运行

ps:这是我在project.csproj中找到的代码

其中NewLicenseForm实际上是用于输入注册详细信息的表单。 如何在设计模式下打开项目时禁用此窗体

<Compile Include="NewLicenseForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="NewLicenseForm.Designer.cs">
<DependentUpon>NewLicenseForm.cs</DependentUpon>
</Compile>
<Compile Include="NewLicenseInfo.cs" />
<EmbeddedResource Include="NewLicenseForm.resx">
<DependentUpon>NewLicenseForm.cs</DependentUpon>
</EmbeddedResource>

形式
NewLicenseForm.cs
NewLicenseForm.cs

只需使用新的许可证表单即可轻松完成。如果表单处于
设计模式
,只需签入它-它是表单属性(有关的详细信息)。在
DesignMode
中,不要运行代码。

是否安装了修改VS工作方式的插件/外接程序?什么是软件包?您确定Visual Studio安装正确吗?(安装期间中断的原因)如果没有,请尝试修复安装,并查看设计器是否也在设计时运行代码。DesignMode属性指示状态。很明显,您应该联系本产品的供应商或作者以获取指导。不幸的是,我无法联系“供应商”。我从另一个开发者那里接管了这个项目。