visual-studio-2010

Cannot find Data Generation Plan in Visual Studio

不羁的心 提交于 2020-01-15 12:38:41
问题 I have created SQL Server database by Visual Studio 2010 Ultimate means in Visual Studio project. I would like to fill it by test data automatically. Msdn says I should create a new item of Data Generation Plan. But I cannot find Data Generation Plan in new item menu... What did I miss? )) 回答1: Have you tried http://msdn.microsoft.com/en-us/library/aa833267.aspx ? Sorry, can't post comments yet...... 来源: https://stackoverflow.com/questions/10963778/cannot-find-data-generation-plan-in-visual

c# Visual Studio appears to follow an incorrect code path

£可爱£侵袭症+ 提交于 2020-01-15 11:56:07
问题 Below is a small snippet taken from a fairly large app to simplify my question. I submitted this question before, but my poor wording caused it to be closed before I managed to edit my question. This is the current snippet to which I have added some logging lines. int i = 0; Console.WriteLine("Before brackets"); if (i < 0) { Console.WriteLine("Inside brackets"); return MyArray[i]; } When I debug with VS I see: i set to 0 if evaluates as false (when I hover over it in VS) In Output: Before

Change Icon on Task Bar for VB.net

ぐ巨炮叔叔 提交于 2020-01-15 11:51:32
问题 I have a program in vb.net which is ready to be published. Its a small detail, but I'd like to change the icon on both the published app shortcut on my desktop, but more importantly on my taskbar (like where the chrome circle shows up). Is there any way to accomplish this? 回答1: To change the main icon for your application, go to the "Application" tab under the project property page, and change the "Icon:" combo box. 来源: https://stackoverflow.com/questions/11581320/change-icon-on-task-bar-for

Script to enable/disable breaking on specific exception types in Visual Studio

江枫思渺然 提交于 2020-01-15 11:47:08
问题 I currently use the Debug -> Exceptions dialog to stop VS from breaking for certain exceptions types. This works perfectly. The problem comes in that occasionally I would like to debug those exceptions, or accidentally turn all exceptions on or off, I then have to hunt through the list and disable the specific exceptions from scratch. Is there a way to do this with a script of some sort? So that I can add whichever options to a list and toggle then on or off easily? 回答1: You can write a macro

How do you remove old version of entity framework in GAC?

非 Y 不嫁゛ 提交于 2020-01-15 11:26:06
问题 Yesterday I posted a question about a issue related to entity framework version after installing MVC 4 on visual studio. Somehow visual studio is still pointing to the old version of the dll (4.3.1.0) eventhough I manualy set it in my reference to the new one I tried solution suggested by danielovich gacutil /u "EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" But it did not find it No Assemblies Found Matching EntityFramework, Version=4.3.1.0, Culture

Release build changes behavior when run outside of the debugger

馋奶兔 提交于 2020-01-15 11:17:12
问题 I'm making a program with C++ and Lua. When I run the program in Release mode OUTSIDE of the debugger, the program doesn't behave as expected (it doesn't crash, it just doesn't do what I thought it would). When I start it from the debugger, it behaves just fine. I understand that there are differences in the way a program will be run in a debugger vs outside of one (Heap differences? Some uninitialized variables?). Is it possible to configure the debugger so it will run the Release version of

dynamically add values to resources (C#)

依然范特西╮ 提交于 2020-01-15 10:57:08
问题 I want to add values to the resources dynamically through codings(C#). My below coding runs without any error but the values are not getting added to the resource file. protected void Button2_Click(object sender, EventArgs e) { using (ResXResourceWriter resx = new ResXResourceWriter("Resources.resx")) { resx.AddResource( "joth", "joth"); resx.Close(); } } 回答1: protected void Button2_Click(object sender, EventArgs e) { using (ResXResourceWriter resx = new ResXResourceWriter("Resources.resx"))

Appending ..mobile to end of view name behaving erratically

自闭症网瘾萝莉.ら 提交于 2020-01-15 10:27:48
问题 I am trying to create a view that loads only for mobile sites. Apparently, adding .mobile to a view name so _Layout.cshtml becomes _Layout.Mobile.cshtml causes that view to be loaded if the device is viewed on a mobile. I have got this working for the very first view my VS project uses - _Layout.cshtml, but then in that file it loads @Html.Partial(MVC.Shared.Views._Header, Model) , I would have expected the same thing to happen with this, that it would know to load the _Header.Mobile.cshtml

Post-build event copy not working

谁说我不能喝 提交于 2020-01-15 09:14:11
问题 I have a post-build event to copy a .dll from one project to another on successful build using the following command: copy $(TargetPath) ....\MainProject\bin This works fine on my local machine, but it appears to be failing on the build server because when building the MainProject I receive the following: warning MSB3245: Could not resolve this reference. Could not locate the assembly "Project2". Check to make sure the assembly exists on disk. If this reference is required by your code, you

Where do I get SQL Server Compact Edition 4? [closed]

房东的猫 提交于 2020-01-15 09:04:10
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Last week Guthie announced that SQL Server Compact Edition 4 was released. http://weblogs.asp.net/scottgu/archive/2011/01/13