visual-studio-2010

Unresolved lambda expression in Re#

I can't figure out what Re# is complaining about with a piece of code. Everything compiles ok and works as it should, but Re# can't seem to resolve the expression without offering any suggestions. Look at the attachment for code and error. Any offers? ...

How do I set the Project's 'Start External Program' setting programmatically?

I have an IWizard which gets access to a Project variable. What code do I need to write to set the 'Start External Program' value in project properties? ...

How to change the prefix background of the RibbonMenuButton items?

I write a sample ribbon here and tried to changed the background of the item as indicated by the #2 arrow in this picture: I tried to use all the properties related to the background but none can do that. Please help! [Edit] Here are some links I found that would be helpful to get started: Control Styles and Templates (look under ...

How can I set up continuous deployment for a SharePoint 2010 Visual Studio solution?

I want to automatically build .wsp packages and re-deploy them on a staging server after each commit. I know how to setup CruiseControl.Net for continuous integration, but I don't know how to build and deploy the packages. So far I got MSBuild to generate .wsp files , but I am struggling with a automatic re-deployment script. What I got ...

Date.ToShortDateFormat() uses wrong locale sometime?

I converted my VS 2008 project into vs 2010 but kept it on .NET 3.5 framework. I don't set my locale anywhere within the app. I've got a couple on computers running windows 7 and XP and both have the region set to EN-AU. Sometime my app returns the short date format like MM/dd/YY (EN-US). As soon as you quit it and start again it reve...

Do I have to use ->Release()?

I am working with a webbrowser host on c++, I managed to sink event and I am running this void on DISPID_DOCUMENTCOMPLETE: void DocumentComplete(LPDISPATCH pDisp, VARIANT *url) { READYSTATE rState; iBrowser->get_ReadyState(&rState); if(rState == READYSTATE_COMPLETE) { HRESULT hr; IDispatch *pHtmlDoc = N...

Compiling OpenCV

Hi, I opened up the solution file in the [InstallDir]\_make\opencv.vs2005 and modified one of the .cpp files in the highgui library. While compiling, Visual Studio throws the error - Unable to start progam C:/Users/../AppData/Local/Temp/opencv.build/cv_Debug.Win32/cv.dll The system cannot find the file specified. I thin...

Does using atlbase.h makes my compiled app to have some extra dependencie?

I would like to know if including atlbase.h in my c++ project will make the compiled application to have a dll dependency or something like that. ...

How to define a relative path for 'Start external program' in VS 2010 project?

I know that here there is a duplicate but I would like, if possible, to be able to define a relative path for 'Start External Program' or any workaround that do not constrain me to add a complete new empty project to my solution. I am using VB.NET in Visual Studio 2010 environment developing WinForms apps. ...

Managing Sample Data with VS 2010 Database

I'm using a Database Project in Visual Studio 2010 to manage all of my database code. For my application, we separate the data for each client into their own copy of the database, with a common database to map users to the appropriate database. I'd like to keep several different sample data sets in TFS along with the code and be able t...

IronPython & WPF: Binding a checkbox's IsChecked property to a class member variable

I've seen many similar questions on how to get data binding working with a checkbox, but all of the examples I've seen are in C# and I can't seem to make the leap to convert it to IronPython. I have a checkbox defined in a window thusly: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sc...

Does winbase::LoadLibrary() load .pdbs?

I have issues with debugging of a library loaded at runtime, and an unknown is: Does winbase::LoadLibrary() load the .pdb in debugging mode? Because if it doesn't, that would explain why I cannot use any debugging in my DLL, and if it does, that would at least tell me to search for the problem somewhere else. Obvious follow-up: If it...

building skills: difference between Java and C#??

So this may seem like a general question..but for learning a programming language quickly and effectively, is C# or Java the way to go? (I prefer VS2010) Is there some sort of site that will help a junior in college more efficiently gain understanding of these languages? Thanks...just looking for some input -DS ...

Web Service - PrincipalPermission(SecurityAction.Demand

For proof of concept and learning purposes, I'm trying to do the most simple possible use of SecurityAction.Demand as follows: [PrincipalPermission(SecurityAction.Demand, Role = @"MyDomain\MyGroup")] public string GetData(int value) { return string.Format("You entered: {0}", value); } I wrote a console test program, and I'm getti...

Create a visual studio initial solution, with a tool or extension.

I found myself repeat on the same structure over and over again in all new projects. Is there a tool that I can use to create my own initial template? ...

Visual Studio 2010 won't compile LINQ properly after power outage reboot

I had a rather large solution properly compiling until my power went out. Now, I have a standard Linq to Sql DataContext class defined in one project, and it compiles properly, however another project that references that assembly refuses to compile Linq properly. I'm getting compile errors like 'DataLayer.AdminDataContext': type use...

Needed - Visual Studio Custom Build Actions To Minify JS and CSS

I've been using Combres in my applications to compress, combine and minify my javascript and css at run time. This works extremely well and satisfies YSlow perfectly. Now I'm rethinking the whole process for performance reasons, and I'm more so thinking about doing all of this at build time instead of run time. I'm hoping that I can ge...

Removing T4MVC from my VS2010 solution

I'm very new to VS2010, so this is more a question about using Visual Studio 2010 than T4MVC. Anyway, I wanted to remove T4MVC from my solution, so I deleted the two files from my root directory. However, when I rebuild and debug my solution, I still see compilation warnings associated with T4MVC.tt. What step am I missing here? Th...

Is it possible to get intellisense for jquery in other js files?

I am working on a web page that has a reference to jquery and another js file with custom javascript for that page. Since the custom js file is external it isn't showing me intellisense for jquery. any way to get it to work? ...

How to copy to unit test out-folder?

I have created a test project to test my WPF project. One of my methods needs to read from a file, which is copied into the bin folder C:\..\ProjectName\Bin\Debug\ when compiling. The method works fine, but when running the unitTest it searches for the file in C:\..\ProjectName\TestResult\UserName_computerName-Date\Out\ How can I ...