visual-studio

Why does MSBuild require explicitly setting the target platform?

For a simple project of mine, a release build in Visual Studio produces an assembly of size 18,944 bytes. But if I build the same solution from the command line with MSBuild, I get an assembly of size 28,672 bytes. That's a difference of 9,728 bytes. I am invoking MSBuild with: msbuild /p:Configuration=Release /t:Rebuild MySolution.sln...

"Suppress Warning" menuitem in Visual Studio 2010 is not available

Hi all, I'm using Visual Studio 2010 Ultimate, and it seems that I cannot suppress warnings in the way I used in VS2008. My project is in C#, and when I right click a warning in the "Error List" window (e.g. for a missing XML-comment of a public type), I do not have the usual menu item to suppress this warning (neither in code nor in ...

Macro in visual Studio 2010 that loads settings file

Hi there I'm just looking for a way (maybe a macro?) to load a settings file. Ideally I'd like to be able to run this as a shortcut from the desktop too. I googled it, but maybe I didn't hit the right keywords. ...

Group files in Visual Studio

Hey, So I'm throwing this random question out there to see if anybody can or has done this in the past. I'm looking at tidying up my project layout in Visual Studio and I'm wondering if there is any hack, plugin or trick to associate an .xml file with a .cs file of the same name so they appear grouped in my solution navigator/explorer...

Does ASLR cause a slow loading of Dlls?

In MSVC, the Base Address Randomizaiton is a default option.(Since VS2005?) So, I do not rebase manually the dll's base address anymore. But I rebased my all dlls to improve loading performance when I use VS2003. If I use ASLR option, the loading performance is always decreased? (Of cource I can get other benefits) ...

Use Crystal Report for Visual Studio 2010

Hi every one, I'm creating an application using visual studio 2010 and I want to create some reports. I already download & instal the Crystal Report for Visual Studio 2010 but i dont know how to use it. if someone has a tuto or some thing can help me. Thanks. ...

How to skip assembly code when debugging?

Hi, Sometimes when I use the debugger to step through my code, it goes into some assembly code (I guess I've stepped into some system library code). The question is, how can I skip over it and jump to the nearest c++ code of my project? ...

visual studio 2008 - Build issues

I am trying to rebuild a project from the clearcase vob and i get the following error code : error PRJ0019 . Any help is very much appreciated .. thankyou ...

c# DataSet with 2 tables, how to delete a row from one it will delete a row from the other?

Hello, I use Visual Studio 2010 I have a DataSet with 2 tables one (MainList) has type, name, path, parameter the other (UpadteList) has path, hash, date I added files to this list and it work with out problem, now I have the following when I add file type "update" it will be "Update","My Program", "PATH-TO-/my.setup.exe","/minimize...

where to find statistics about .net developers worldwide

I am looking for some statistics about .net developers which works with vs 2008 and language c#, worldwide. Is it possible to find such specific information? If someone has actual information, at least 2 years young, please help me. And one thing more: I preffer to have charge free information:)! ...

How do I get the Windows Forms Designer to use resources from external assembly?

I have some resources (images in this case) in a resource file that I use on controls in my Windows Forms project. The Visual Studio Resource Selection dialog doesn't have very good support for choosing images from resource files unless they're in specific locations, but you can edit the designer file directly, and this works just fine; ...

Pointer mismatch for actual parameter?

I have a function which creates an array of pointers. The function which allocates the memory returns the new memory pointer through a parameter passed to the function. The simplest code which can reproduce the problem is as follows: void foo (void** new_mem, size_t bytes) { *new_mem = malloc(bytes); } int main (void) { int**...

Stop Visual Studio asking for each project: has been modified outside the environment. Do you wish to reload?

Do you wish to reload the project? Where's the Reload All option. Vote for this question and hopefully MS will implement a fix in VS2020. With pleany of projects in a solution I for one dread doing an svn update. This has been an issue from VS2003 but after a decade of clicking mindlessly on buttons it's getting on my wick. Does anyo...

Append integer to end of const char* c++

I have const char* FilePathName which looks like this: C:\ImportantFile.hex And an int id = 12345; I need to define a new const char* FilePathName_ID that would append the id with an underscore to the original FilePathName to look like this: C:\ImportantFile_12345.hex I have looked at this but its different as I am using const char* wh...

Change the SQL request of report

Hi I'm creating a report using the Crystal Report for Visual Studio 2010 but I dont know how to change the SQL request. Thanks. ...

Remove version number from reference (avoiding "Could not load file or assembly..." error)?

In my class library, I am referencing DLL's from my website's bin folder. Sometimes the DLL's in the bin folders get updated, then I get the error of: Could not load file or assembly 'MyAssembly.Sub, Version=3.7.2096.3, Culture=neutral, PublicKeyToken=dfeaee3f6978ac79' or one of its dependencies. The located assembly's manifest de...

Turn off automatic quote insertion in Visual Studio 2010

I am editing a huge number of legacy ASP pages that have been converted over to C#. One problem is that the HTML attributes need to be adjusted to correct some double quote problems. My problem is that when I add a double quote VS dutifully inserts the closing quote in the wrong place. I then need to go an delete that quote and enter t...

Microsoft .NET compatibility

I used VS2010, and target for .Net 2.0 (VB.Net Windows Form application) http://stackoverflow.com/questions/2171980/how-to-decide-what-is-the-net-target I decided on 2.0 because I understood it will be OK if the users have higher version I tested my app on XP with .Net 2.0, works fine. I uninstalled .Net 2.0 [to see what error message...

Property Sheets in VS 2003

I have a property sheet that I'm adding to projects in VS2005 but I found out that some of the projects are from VS2003. Is there a way that I can add this same property sheet to these VS2003 projects? ...

What's a good book/guide on developing COM applications on Visual Studio ?

I am a web developer with some C++ background. I need a relatively straightforward way to understand COM and its capabilities. Ultimately, I should be able to write an ActiveX or XPCOM component that I can interact with from javascript. Thanks. ...