visual-studio-2008

creating addin setup project for all users VS 2008

I developed addin for VS 2008 which is used by many users. I have to deploy it this address "C:\Documents and Settings\All Users\Application Data\Microsoft\MSEnvShared\Addins". Although I changed parameters for setup properties, wizard deploy binaries to Program Files[Manufacturer][Product Name]. How can I do it? ...

Visual Studio ad-hoc tools and plugins

Guys, I opened this question (I hope could help some others) but reading stackoverflow I find some really interesting pearls of information lost in the cloud. What do I mean? For example I was reasearching the Web for the best way to validate parameters in methods. I was breaking my head trying to find a nice, elegant way to do it, then...

Implicit rules for custom build events in Visual Stidio

I am trying to move a set of fairly complex C++ applications/libraries from building with makefiles and command-line tools to using Visual Studio's MsBuild. The apps/libs reference several hundred database tables, each of which has an object-relational-mapping class that handles reads, updates, etc. Each table is defined in a table def...

Visual Studio 2008 - Unit testing with web config settings

My web application depends on a web.config entry being a certain value (like FEATURE_ACTIVATED=true) so how do I test the function that reads this web.config entry? I'd like to avoid copying the web.config entries to an app.config in the unit testing project, as it takes extra effort to synchronize the files. ...

visual-studio-2008 Professional database projects

We used some Database Projects in VS2005 Professional. Am I correct in saying Microsoft removed support in 2008 Professional edition and moved it to Team System instead? ...

Error Compiling Using Team Build

I'm tring to use Team Build to build a solution. On my PC I create a new build using VS2008, it only has 1 solution in it. It's a C++ dll which is compiled in VS2005. I have the build configured to build on our Build server. When I run the build I get the error "error PRJ0050: Failed to register output." When I compile the solution u...

Getting "cannot copy assembly" errors when trying to build website

I'm getting two of these errors when trying to build the full solution for our website. Here's the full text of the errors: Error 91 Cannot copy assembly 'Emcom.DataAccess.dll' to file 'C:\work\evan-moor.com-trunk\2007.evan-moor.com\Bin\Emcom.DataAccess.dll'. Unable to add 'C:\work\evan-moor.com-development\Emcom.DataAccess\bin\De...

Visual studio layout and toolbars are all changed

I opened up Business Intelligence Design Studio (BIDS) the other day. Since then my visual studio toolbars and panes have been all screwed up. Commands are missing, panes never stay where I want them, etc. Whenever I install VS, I usually select the Web Developer settings when the first time dialog comes up. I'm pretty happy with the la...

How do you get the current solution directory from a VSPackage?

Rephrasing the question to see if I get some views. Following is how you would get the current solution directory from an add-in: _applicationObject = (DTE2)application; // retrieved from OnConnection method string solutionDir = System.IO.Path.GetDirectoryName(_applicationObject.Solution.FullName); How would you do this via a VSPack...

Move type from one project to another via Resharper?

I have several interfaces and classes that i have in my business layer project and i want to move them into a brand new project. I am using Resharper 4.5.2. Is there any way I can do that easily and with no pain? I know about the move type functionality, but it seems like it will only do it within the same project. Any help would be ...

Visual Studio 2008 Intellisense missing

Itellisense is suddenly missing from Visual Studio 2008 IDE on a project I am working. This was working fine. I rebooted the machine several times but still not working. It's working in other projects. What else could be causing this? ...

Visual Studio 2008 Project vs. website debugging

To create a website I chose 'create website' in VS2008. I soon discovered that the compile options were not available (or at least I could not find the option) like creating serialization assemblies. So I created a project and made the site into a 'project'. As a web site I could have the page open in a browser, save a change to pag...

Displaying byte values in the picturebox control

Hi, i am currently working on a project which deals with the reading of satellite images of ".0FM" format and its size is around 8Mb. Now i have been successful in converting the file("*.0FM") content into a byte array. Now the byte array has integer values ranging from 0 - 255. I have to display this byte array in a picturebox control....

warning BC40056: Namespace or type specified in the Imports 'MS.Internal.Xaml.Builtins' doesn't contain any public member or cannot be found.

I have a WPF VB.NET project in Visual Studio 2008. For some reason, Visual Studio thinks that it needs to add an Imports MS.Internal.Xaml.Builtins to every auto-generated XAML partial class (= the nameOfXamlFile.g.vb files), resulting in the following warning: warning BC40056: Namespace or type specified in the Imports 'MS.Interna...

Can VS2008 verify my project is ready to be "published" for one-click deploy?

Ie I have gone through my first publish for a winforms app only to find some dependancy in the setup created (even though my app worked ok in VS in debug) is there a way to do a prepublish verify for publish first? ...

How to tell if you are running in the debugger in VS?

Hi, Is there a way to tell in the code if you are running in the debugger in VS2008? I need to set up a couple things for us developers differently than when the user is running the click one deployed app? I see that there are things you can do to tell if you are in Designer mode but that is not the same. thanks! Bill ...

IIS site always returns 404 to WinMo emulator

I'm running Win7x64 Ultimate with Visual Studio 2008. I have a website built in ASP.NET 3.5 and hosted via IIS on my box. I can run the website perfectly fine and I can hit all of the web services that I have built in the website, using a web browser. When I pull up my Windows Mobile 6 emulator and hit the site (using my IP address) it ...

Visual Studio uses UserControlDesigner instead of CustomDesigner

Hi! I've got an ASP-UserControl QuestionWithAnswer (.ascx) : BaseQuestion : UserControl and a ControlDesigner QuestionDesigner : UserControlDesigner. Now i use the DesignerAttribute to associate control and designer: [Designer(typeof(QuestionDesigner))] public class BaseQuestion : UserControl all types are in the same assembly (WEB A...

Where is the call to std::map::operator[] in this code?

I have the following typedef's in my code: typedef unsigned long int ulint; typedef std::map<ulint, particle> mapType; typedef std::vector< std::vector<mapType> > mapGridType; particle is a custom class with no default constructor. VS2008 gives me an error in this code: std::set<ulint> gridOM::ids(int filter) { std::set<ulint> r...

Visual Studio 2008 SP1 - Design View of page only shows the Master Page

I'm creating a app that uses a Master Page. But when i go to Design View of the page (for creating the events automatically or for drag/drop any new control from toolbox, I don't want to type everything) the design view only shows the master page! the page controls are complete ignored! the image: http://img4.imageshack.us/img4/7980/ma...