visual-studio

What VSDCA_Launch mean in Custom Action script

I want to launch an application after installation with Visual Studio setup&deployment output. I follow the article 'How do I launch an application after install in a Visual Studio Setup Project'. It has a solution that using Custom Action to add a checkbox and launch the application after installation. But I still have a problem, the ...

Linking Issues in a Multiproject Visual Studio 2005 solution.

I'm working on a solution file (VS 2005) which contains multiple projects. There are two projects of my concern right now - one called core and another called log. The core project is the startup project and the log project has core ticked in its project dependencies. I have two files in core project - AB.h(declarations) and AB.cpp(de...

Possible to create xml comment for array's indexes in Visual Studio ?

Hello everybody. It is hard to remember which index what was if there are one more indexes in array. For example new int[side,from,to,etc,etc] this array will be hard to remember while filling his indexes. Visual studio just show tool tip for indexes index1,index2 .. etc . Is there a way to use xml comment for indexes ? ...

add items to visual studio solution in msbuild task

I have created a msbuild task that minifies and combines javascript and css files that is triggered when my visual studio project is built. This task adds the minified and combined files to the file system. However I would like that they automatically be added into the visual studio project. Is this possible and if so, how can I achiev...

How can i insert dataset into sql table with same columns in Entity FrameWork?

i get all column values from Users to StandardUsers id,Name,SurName and PostCount data to add. But Return below error: IN " entityUsers.GetType().GetProperty(columnNames[i]).SetValue(entityUsers, columnValues[i], null);" Return To Me Error : Set method of characteristics not found. public static class MyDynamicInsertCustomerExtension...

web.config changes in installer and based on targeted environment

Need some assistance with my Visual Studio projects and in particular with release process. To release my web application, I use a web deployment project to deploy my web application. I have split my connection strings and app settings into a seperate config files, with a config file for each environment I might be creating the msi for ...

How can I use Func<Tkey,T> in linq?

How can i change below codes to second Type: i try to use flexable codes like first =>second usage... First Type private void Form1_Load(object sender, EventArgs e) { List<City> cities = new List<City> { new City{ Name = "Sydney", Country = "Australia" }, new City{...

Changing the default Source File Directory in Visual Studio

This is not a work-stopper in any way, but I thought I should ask anyway because it is a little annoying. Let's say I create a new project and start putting source files in a directory other than the default that shows up the first time. Afterwords, whenever I open the project, I have to navigate to the source directory once during that ...

Deploying software made in Visual C# Express (2010)

7 Questions: 1 Can I sell the software I make in it? 2 What kind of licenses am I allowed to use? 3 Any templates for Terms of Use & Conditions? 4 Can I just distribute the exe in the /Release folder? 5 What if I use class libraries? 6 How do I stop people from installing it after the trial period is up? 7 How do I make a custom install...

Why does my DB project's .dbmdl file change even when I make no changes to the project?

I'm running into a small but weird annoyance that seems to be happening to other people, too (for example, check out the revision history of SEDE). I have a SQL Server 2008 database project in Visual Studio 2010 that works properly. When I go to commit/checkin to source control, I'm told that my DB project's .dbmdl file has changed, even...

MVC2 - Basic question where logic should go

Starting with MVC2, messing around with a simple db and just using the index view to display the items like: in the controller: // // GET: /Equipment/ public ActionResult Index() { return View(database.Artists.ToList()); } then the auto generated code in the view: <td> <%: item.ArtistID %> </td> ...

How to add Intellisense support to visual studio for new language.

I want to add Intellisense for .xyz file types which is my own language. How should i proceed? ...

Quick Way to Convert Existing CSS Layout to IE4 Friendly?

The built-in WebBrowser Control in Visual Studio apparently only supports up to IE4. When wrapping your typical jQuery/jQuery-UI, some layout errors abound. Is there an easy way to convert the webpage's layout to IE4 friendly (I'd imagine, table-structure rather than div-based etc)? ...

What kind of add-in / extension for VS 2010 should I create ?

I have managed to develop an extension for visual studio "Update web reference" action in form of a simple dll that takes care for some sharing of classes between different projects etc. Everything works at my local machine and now I would like to create some user-friendly package so that all the guys in our company can use it as well. S...

Visual studio regex to match swallowed exceptions

I need a Visual Studio regex to match swallowed exceptions. This is as far as I got, but it still matches valid code like this: catch (ArgumentNullException) { //... throw; } catch:Wh*\(:Wh*.*Exception.*\):Wh*\{[:Wh*.*]*[^(throw:Wh*.*;)].* How can I fix this? Edit: Am I to take it from the comments that testing for the absence...

Visual Studio References: Specific Version setting question

I have a Winform App that we uses internally that I publish through ClickOnce with SQL Express 2005. The app also references a couple of Microsoft.SqlServer dll's. I am trying to figure out how the Specific Version settings work. I have SQL 2008 installed on my machine they have 2005. If I select Specific Version = false will it ca...

Prevent Visual Studio from adding extra asteriks when hitting enter inside a multline comment

If you are coding C# inside visual studio, and you have a multiline comment, thusly: /* This is a very interesting comment that consists of multiple lines */ Then if you are inside the comment, like after the word "comment" in my example, and you hit enter, Visual Studio adds a "* " on the new line and places your cursor even with the...

Can I tell Visual Studio how treat a file with a custom file extension?

Can I tell Visual Studio how treat a file with a custom file extension? I want to be able to open a file with ".xxx" extension in Visual Studio and have CSS highlighting. I've tried to do it by going to VS -> Tools -> Options -> Text Editor -> File Extension but in the Editor drop down there is nothing to specify "treat it as CSS". ...

Visual Studio Add-Ins: Can't get Document object from SelectedItems

Let me start by saying I'm new to developing add-ins for visual studio... When using the DTE2 object, I am attempting to get some info on the document that is currently selected. If I do something like this: DTE2 VisualStudioInstance = somethingOrOther; Document documentInfo; if(VisualStudioInstance.SelectedItems.MultiSelect == false)...

How Can I Let My Winform Work on a Single Machine Only?

I have winform application written in c#. I would like this application to only gets installed in a single machine e.g. M1. If a user tries to install the application in M2, he/she will get an error says "installation aborted due to .... etc". I will have to check MAC Address and Machine Name, if they match the one hard-coded in the app...