Questions for visual-studio-2010


9309

Content Defined in Class Library doesn't transfer during ClickOnce Deployment

I have a WinForms, C# solution that uses ClickOnce deployment that is causing some trouble with resource files. In short, files marked as Content in class library project do not get copied to the o...
5543

IF ELSE CONDITION

I am working on the visual studio c++ and using these lines in my program.
233
3648

Conditionally exclude project creation in a multi-project Visual Studio project template

I have a multi-project Visual Studio project template. I want to be able to, conditionally, exclude specific projects from the created solution.
1177

Cannot connect to named instance of SQL Server 2008R2

I am attempting to create a new Database Project in VS2010 via the New Project Wizard, and via this article: http://msdn.microsoft.com/en-us/library/aa833432(v=vs.100).aspx
3274
3460

How to change the Resgen command line in a VS.NET project?

Having an issue with a ResGen call during a build of a .NET 2.0 project from within Visual Studio .NET 2010, this thread suggests:
7674

Visual Studio 2010 keeps crashing?

I have a serious problem with our VS2010 with SP1. It is all the time crashing. I open it and 10 secs later I get crash and restart.
6976

Post-Build Events Output Path for Projects and Deployment Project

I am working on a program that needs to have each exe signed before being packaged in the MSI deployment project. I've tried using VS2010's Signing tools ("Sign the Assembly"), but the key file doe...
7433

interrogate the Data in Lync 2010?

I developed a seat plan website - it uses the Lync SDK to pull back user details - (i.e. when a name is clicked on the map it passes the name into the Search box and then lists the person in the re...
8558

How to change ipch path in Visual Studio 2010

I saw that VS2010 creates some files in the solution folder(.sdf, .suo, .ipch, etc). Is it possible to change the folder where these files are created?
1942

Why would DropDownList.Text is return 0 when it is clearly an empty string?

I have a drop down list that I am binding to a record that clearly sets value=0, text=''
7237

register eventhandler for Office 2013 event in vs 2010 by reflections in C#

I have an Outlook 2010 Add-In project written in C# using Visual Studio 2010.
8679

How to compile for Arduino in Visual Studio?

I am using Visual Studio to create a small Arduino sketch. I want to upload the sketch to my Arduino Uno board. How do I compile and upload to the Uno using Visual Studio?
864

c++ std::vector.insert crashes on debug but works on release

My program crashes on this line but only in debug build, it works fine in release build.
3154
1210

Location of EntityFramework T4 templates

When you do database-first or model-first (EDMX) in EntityFramework, I believe Visual Studio generates code off T4 templates, I would like to create a new out of the default and throw some customiz...
7197

Search project for where class is instantiated

Is there a tool in visual studio 2010 to scan a project and find out where a specific class is instantiated?
4698

Silverlight Unit Test Framework Rerun Tests

Ok, maybe this is a really dumb question and I'm just not seeing the button...but how do I rerun checked tests in the SL Unit Testing application UI?
9884

C# visual studio using resource files

What I'm trying to do is adding two image files into the solution, so they will be compiled into the .exe, so I can load them right there instead of from an absolute path on the computer. I believe I
6526

Visual Studio 2010 and Moss 2007 issues

Here is the scenario: My dev environment is a Windows 2003 virtual server, MOSS2007, VS 2008, SQL2005, .net Framework 3.5, Ajax 2.0.
7733

Windows Forms C# Tool location is not same

I'm developing an windows forms application using .NET C# and so far all code related are just fine. But, I got some UI trouble. I have this gauge that I'm using in the UI for displaying a connection
4404

Remove breakLine between td in sourceCode

Public Function GenerateHtmlReport(ByVal ResultDataset As System.Data.DataSet) As String Implements IValidation.GenerateHtmlReport
262

Easily build a different branch of the same C# project (VS2010/TFS)

I'd prefer to solve this using a Team Build/build definition, but I'm open to other solutions.
5178

Access Database C#

I want to have some tips. I have worked on SQL databases in c# but i am developing a new small level application that only has to store some contact numbers so i planed for access because SQL will be
6952

Ambiguity between Static and Instance Code

I have two items in my class: One is a public property, and the other is a static method that takes a parameter.
8518

C#/WPF: LineGeometry with nested UI Elements

I am having problems using LineGeometry for drawing a path between two simple shapes nested in canvas elements.
8153

ViewModel support in Portable Class Library

I am trying out the PCL in a VS 2010 project in which I would like to support WPF (4 and higher) and Silverlight (4 and higher). The MS documentation excerpt below is confusing to me.
891

Calling .net4 from SSIS

We've done some work on a .net 4.0 project, and are now looing into using SSIS for some tasks. As SSIS is not supported in VS2010, as far as I can see, I'm sort of ok with using VS2008 for SSIS. Bu...
7654

Design View on SharePoint Project Visual Studio 2010

Hi I am creating an application page for SharePoint 2010
6283

Play User's Songs using Silverlight

Does anyone have a working (tested) example of code to play an audio file from isolated storage. The code I currently have, which doesn't throw an exception or make any sound, is:
7062

Microsoft Visual Studios 2010 - creating a new project in regular C

I'm relatively new to VS (only used it once before for a simple project) and all I want to do is create a new C file for my project. When I go to add file to the project I created, the only available
3086

BindingSource.Filter ignoring one of my conditions

I have a BindingSource filter with multiple conditions. The reason for that is so I could have a single search_textbox to find a specific record...
6050

AnkhSVN - managing VS *projects* not *solutions*

I work on several different software projects and I started building up some generic libraries with utilitarian functions that I use in all of them. Recently I had three or four projects going at o...
6900

Where to put content, in Installer project (WiX) or in code project

So I see two solutions to my current problem, but I was wondering what the pros and cons are, or if there is a defacto best practices approach.
3831

How to add x64 (or Any CPU) as a build option in Visual Studio 2010 (from console application to class library)

Initially, I created a console application using Mass Transit as my service bus. Recently, I switched to NServiceBus, which doesn't require you to make a console application, but a class library in...
9139

For VS2010 (C++) what causes the long delay between clicking on “Build” and when the build actually starts?

I have a simple one-project solution in C++. From the IDE I click on Build Solution and it takes 40 seconds before anything happens. Then 17 seconds to actually do the compiling and linking. If I c...
2245

VS2010 “No tests were impacted”

I have a TFS build in VS2010. Following the build unit tests are executed. In the Build summary it tells me that "1 test run(s) completed - 100% average pass rate" but below this it states "No test...
6503

How to find out what type of project I have in Visual Studio 2010

Someone sent me a project and I want to create the same type of project (like... WCF Application or Portable Service Class). I've looked around Visual Studio 2010 and don't see any obvious place wh...
2582

Razor template editing in Visual Studio 2010: why all the type inference errors?

I have a strongly-typed view with a @model declaration:
5008

Is it possible to get VS 2010 to build before running tests

I have a Class Library project in Visual Studio 2010 that I want to test. I have created a seperate Test project in the same solution to test it. The Test project references the Class Library proje...
298

License.licx File and Licensed/Unlicensed machines

In a VS2010 solution I have a license.licx file that contains:
5002

How to build a specialized installer in VS2010?

I'm looking to build a specialized msi installer, preferably with VS2010 to do the following:
2074

Checking Visual Studio code into source control - what do I need to check in?

I have a new project written in Visual Studio 2010, and I have checked all of the code and the project files into our source control system, however checking the code out and doing a build via MSBu...
2589

Strange behavior in C++ constructor\destructor

I was playing with C++ class constructor function by using it recursively to print "trauth table". Everything was seem to be normal until I decided "why not using destructor too recursively?". When I
2139

unresolved external symbol with template implementation on VS2010

i just built a template implementation of my boost network.
7806

Template type is not “seen” by the compiler inside a lambda

template<typename Wcf, typename Wdb>
4836

Save/Use images without allocating 300mb memory

I am building a windows project in .net 4.0 c#.
9308

Reducing template complexity in C++

Recently, I've been using one of the lesser-used STL features- custom allocators, and I need some serious help in reducing my semantic overhead. Take for example, the definition of an unordered map,

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.