visual-studio-2010

Unable to access 'Build Action' property for .cs files

孤街浪徒 提交于 2021-01-27 12:11:58
问题 i got a problem with my site with my app_code files and a lot of question ive read people say you need to change the proprties of the .cs files to Build Action. by right clicking the .cs files and press proprties. but... when i right clicking the files i cant see any option called proprties so i press F4 and it open a proprties window and i just click on the .cs file and still cant see any option i can change somthing to Build Action. any idea why i cant see this options? EDIT: my problem is

Partial Form Class C# - Only display code view for class

戏子无情 提交于 2021-01-27 11:30:55
问题 I have a Blank Forms project in C#. I wanted to separate the functions and events into different Codefiles on the Form Class. In order to make it more manageable when it becomes large and multiple people are using it on CodeControl. So I created; Form1.Functions.cs Form1.Events.cs These extra partial classes both consist of namespace MyLargeProject { public partial class Form1 { } } I also changed the csproj file so the VS IDE would make them appear in the Soution Explorer. Example <Compile

cout and printf Works On Dll Built In Debug Not Release

落爺英雄遲暮 提交于 2021-01-27 05:56:33
问题 I've built a DLL that gets injected into a console application usually via SetWindowHookEx. Its important for the DLL to output information to the console which I have been doing with std::cout. The DLL was nearing completion until I tried building the DLL in release mode which rendered all cout lines useless. I've verified the the DLL is injecting and is executing by doing a simple null dereference that causes the program to crash in the dllmain function. Same story with std::printf. void

Managed target code requires a '\clr' option : Error

不想你离开。 提交于 2021-01-27 05:42:52
问题 When I try to batch build my project, I encounter this error while I have enabled the clr runtime support. My project can run with no problem and I only receive this error when I try to make a batch build. I have made a lot of searched in google but most results are about enabling the clr option. I'd like to know how I can fix this problem. 回答1: This is the kind of problem you'll run into when you make project setting changes while you are debugging your project. Settings are stored per

Managed target code requires a '\clr' option : Error

左心房为你撑大大i 提交于 2021-01-27 05:42:19
问题 When I try to batch build my project, I encounter this error while I have enabled the clr runtime support. My project can run with no problem and I only receive this error when I try to make a batch build. I have made a lot of searched in google but most results are about enabling the clr option. I'd like to know how I can fix this problem. 回答1: This is the kind of problem you'll run into when you make project setting changes while you are debugging your project. Settings are stored per

What's the point of unloading project in Visual Studio?

南楼画角 提交于 2021-01-27 04:10:40
问题 I'm reading a book about MVC ASP.NET, there are some hidden project setup that you can only modify by 'unload' the whole first(then all the structure gone), then after clicking 'edit' , change the xml tag value. That reminds me to ask: why we need to unload the project before we modify the config file? Can anybody tell me the meaning of unloading project? Why not just open the folder location and change by Notepad? 回答1: It can be useful to unload a project from a solution while resolving

What's the point of unloading project in Visual Studio?

天大地大妈咪最大 提交于 2021-01-27 04:10:19
问题 I'm reading a book about MVC ASP.NET, there are some hidden project setup that you can only modify by 'unload' the whole first(then all the structure gone), then after clicking 'edit' , change the xml tag value. That reminds me to ask: why we need to unload the project before we modify the config file? Can anybody tell me the meaning of unloading project? Why not just open the folder location and change by Notepad? 回答1: It can be useful to unload a project from a solution while resolving

Updating GAC dlls

删除回忆录丶 提交于 2021-01-27 04:07:17
问题 I got a DLL registered in the GAC which has a bug in it (v4.2.0). I've therefore fixed that bug, updated the file version only (v4.2.1) (keeping the assembly version, v4.2.0) and built a new MSI package. The problem is that the DLL is not installed in the GAC. I verified this by right-clicking on the DLL in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\MyDLL\v4.0_4.2.0.0__2269313d92725976 and checked the file version, which is still v4.2.0 There are also no other folders created under C:\Windows

Updating GAC dlls

梦想的初衷 提交于 2021-01-27 04:07:07
问题 I got a DLL registered in the GAC which has a bug in it (v4.2.0). I've therefore fixed that bug, updated the file version only (v4.2.1) (keeping the assembly version, v4.2.0) and built a new MSI package. The problem is that the DLL is not installed in the GAC. I verified this by right-clicking on the DLL in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\MyDLL\v4.0_4.2.0.0__2269313d92725976 and checked the file version, which is still v4.2.0 There are also no other folders created under C:\Windows

How to use an Items Collection Editor on a custom UserControl (.Net 4, Winforms)?

寵の児 提交于 2021-01-21 05:44:35
问题 I created a UserControl that contains a custom ToolStrip Control . While using the UserControl throughout an application, the ToolStrip control cannot be accessed directly, as it is logically embedded in the UserControl . So, to access the items of the ToolStrip I defined a readonly property in the UserControl class that returns the items of the ToolStrip. Now, programmatically the items of the ToolStrip can be edited, by using the UserControl.Items property, but I cannot do the same in the