hi, strange 1 here..
have a solution with multiple projects in (mvc2 application, class library etc).
the solution will not build in debug mode anymore. 1 if the projects isnt building its DLL anymore (although it creates reference dll's in the bin\debug folder).
this gives me the error: Metadata file 'C:[solution]\bin\Debug[myprojectna...
I've read about the use of "Custom.Before.Microsoft.Common.targets" and "Custom.After.Microsoft.Common.targets" in order to execute a custom target before/after every project build and I would like to use this technique in order to change version info while building on our TeamCity build server.
The problem is that although it works fo...
Hi,
I have build a dll and now I want to use this dll in a Microsoft Visual Studio project.
g++ -O0 -Wall -c -fmessage-length=0 -osrc\MyLib.o ..\src\MyLib.cpp
g++ -shared -Wl,--out-implib=MyLib.lib -Wl,--output-def=MyLib.def -oMyLib.dll src\MyLib.o -lwsock32
The dll works fine when I use it in a "gcc project".
I have tried different ...
Is there an easy way to reformat an XML file while viewing it Visual Studio 2010. For example, if you open a generated app.config file, it might look like:
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
This is difficult to read, is there a w...
When creating a Visual Studio Add-In, how can you utilise an app.config for the add-in. If I add one to the project and deploy it then when the Add-In runs and I programmatically try to access it via the ConfigurationManager.AppSettings its not picking up the config file for the add-in.
Am I doing something wrong or is there another mea...
I am using C++. C++0x using Visual Studio 2010 to be correct.
Suppose I have a class Z. To make it safer in my application to work with pointers to this class, I can consistently use smart pointers (shared pointer, weak pointer).
Now this class Z inherits from a class X. Some parts of my application will work with pointers to class ...
Let's say that you want to write an application that processes multiple text files, supplied as arguments at the command line (e.g., MyProcessor file1 file2 ...). This is a very common task for which Perl is often used, but what if one wanted to take advantage of .NET directly and use C#.
What is the simplest C# 4.0 application boiler p...
At work I'm tryhing to upgrade an ASP.NET 2.0 app (which we wrote using VB.NET 2005) to ASP.NET 4.0. I had a few problems during the upgrade, but eventually worked them all out. At the end of the day I decided to give it a quick compile and see if I'd get the start page, so I hit F5 in VS 2010. I left it that way, and man was it actin...
Now that biginteger (System.Numerics.BigInteger) support has been added in C# 4.0, it would be nice if arbitrary precision floating point/fixed point was also possible. Are there any good (preferably free) third party libraries that offer efficient arbitrary precision floating/fixed point capabilities?
...
It appears that MS has a bug when dealing with VS 2010 SQL CLR project and computed columns. I am using Pre/PostDeployScript.sql to drop/add the computed column. However, if I try to deploy from VS2010 it, I get dependency errors. The same project works 100% in Vs2008.
I am wondering what my options are in terms of deploying to work arou...
I made an installer fro project/item templates in VS2010 to put the templates in the user's Templates folder. Is this an OK way of doing things? Or is there a way to deploy templates for all users? If so - where should I put them? Thanks.
...
In the /bin/debug folder of my solution I've noticed a slew of what appear to be foreign language folders with names like "ar", "bg", "ca", "cs", "da"... all the way to "zh-Hant". The folders each have copies of these 4 DLLs:
System.ComponentModel.DataAnnotations.resources.dll
System.Windows.Controls.Data.Input.resources.dll
System.W...
When I'm working in VS.Net 2010, then start debugging, seems like a new window profile or something like that kicks in and rearranges/hides windows that I had open previously. Is there any way to disable this "feature"?
...
I think this is a simple question, but I can't seem to find a clean solution.
I am working on a parallel program on my local (dual core) developer machine. I develop for a while, then I want to run it on a multi-core server somewhere else. I have a settings file that is different (paths, etc.) between the two instances, but otherwis...
I'm attempting to populate a DB on my local SQL2008 Server using a Data Generation Plan. However, when I run it I get:
Data generation failed because of the following exception: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.. occurred 1 time(s).
I've tried setting...
So I migrated from VS2008 to VS2010 with my clickonce application. I use to have the 2008 C++ redist as a prereq for my application. Upon moving to VS2010 that option no longer exists and the 2010 C++ redist will not do. I have successfully been able to re-add the 2008 redist into the Visual Studio 2010 prereqs list.
My question is...
I'd like to copy a file and include the file in the web project and would like to do this as a part of the Pre/Post build events.
My understanding is that these events support DOS commands and I can use xcopy for copying a file, but I am not sure how I would update the csproj file to include the file in the project.
...
I'm considering running unit tests for my Visual Studio 2010 projects on our build server at build time. The problem is that when I'm working locally, I want to test against DEV, when building for QA, I want the tests to run against QA, when building/promoting for UAT/PROD... you get the picture.
I think VS 2010 might have support for...
How do you set the default framework version for new projects in Visual Studio 2010?
...
I've written my first WPF 4.0 application. It is a page-based app (not an XBAP app). The user searches for some items on the first page, and selects something found to go to the second page. On the second page users will enter more data, save it, and returned to the first page to start the process over again.
The majority of my users...