projects-and-solutions

Mark or highlight files in Visual Studios Solution Explorer

偶尔善良 提交于 2019-12-09 15:29:18
问题 is there an Add-In which allows me to tag or mark files in Visual Studio and then these files are visual highlighted (eg. different background color) ? I searched the Visual Studio Gallery but didn't find anything. Thanks! 回答1: I found the extension Visual Studio Tags on codeplex that can do what we need, but there's not (yet) visual support (ie, diferent colors in solution explorer). 回答2: To highlight only the active (open and viewed) item in the solution explorer (without any add-ins): Go

Defining Project Paths in a Solution via Macro/Environment Variable

一笑奈何 提交于 2019-12-09 08:27:19
问题 Is there a way to define the project file path in a solution using a user macro/environment variable? I can't seem to do that. Kind of like an environment variable is used to define the additional include directories in a C++ project, except I want to do the same for the location of a project file in a solution. I've tried editing the solution in a text editor to change the path to start with %MyMacroName% or $(MyMacroName) but neither of them seems to parse just right. The project files can

Visual Studio keeps changing project.sln file

廉价感情. 提交于 2019-12-09 04:13:28
问题 I work in a team on a Visual C++ project. Following advice we got we're tracking the project's .sln file with our SCM. It turns out that each time I pull from my partner (yes, we use git) and open the solution in VS, the .sln file is updated. The part being updated is the long id that appears several times (in this case ending with 7C44) in the following segment: {828CB89E-F092-3B7A-2F8C-62E146587C44}.Debug|Win32.ActiveCfg = Debug|Win32 {828CB89E-F092-3B7A-2F8C-62E146587C44}.Debug|Win32.Build

Going from <solution> to <exec program=msbuild> in NAnt

我是研究僧i 提交于 2019-12-09 01:21:38
问题 I've converted my app from .NET 1.1 to .NET 3.5 and unfortunately NAnt's tag does not support .NET 3.5. So I am trying to use the tag to kick off msbuild directly. Here is what I have for .NET 1.1: <solution solutionfile="MyApp.sln" configuration="ServerDebug" outputdir="MyApp\bin\ServerDebug"> <assemblyfolders> <include name="Dependencies\Libs\bin\ServerDebug"/> </assemblyfolders> </solution> I converted it to <exec program="msbuild"> <arg value="MyApp.sln /p:Configuration=ServerDebug;OutDir

How to stop Visual Studio from automatically creating solution files

假装没事ソ 提交于 2019-12-08 20:58:06
问题 Our projects are typically stored as single projects, and are not part of a larger solution. When I open a project, Visual studio creates a solution (sln) and soution options (suo) file in my folder. I want to stop this automatic sln and suo creation, Does anybody know how to go about doing this? EDIT: We have several dozen individual projects, and when I do a compare to source control to find the items that need to be added/checked in, these 2 are always crapping up the list for each project

Should I embed CSS/JavaScript files in a web application?

流过昼夜 提交于 2019-12-08 20:13:39
问题 I've recently started embedding JavaScript and CSS files into our common library DLLs to make deployment and versioning a lot simpler. I was just wondering if there is any reason one might want to do the same thing with a web application, or if it's always best to just leave them as regular files in the web application, and only use embedded resources for shared components? Would there be any advantage to embedding them? 回答1: Of course if anyone who knew what they were doing could use the

fatal error C1083: Cannot open include file

喜夏-厌秋 提交于 2019-12-08 18:33:49
问题 I looked at previous post based on this but they do not relate. I am receiving the following error. 1>c:\users\numerical25\desktop\intro todirectx\introtodirectx\chapter 4\init direct3d\init direct3d.cpp(9) : fatal error C1083: Cannot open include file: 'd3dApp.h': No such file or directory But clearly from the image shown below, its there In oppose to other people who are having issues finding the header on the physical drive. the compiler can not find my header from within the solution

VS2010: Incompatible Reference when trying to add reference

纵然是瞬间 提交于 2019-12-08 17:18:51
问题 VS2010: In my newly created project, any time I try to add a reference to any of my other projects or, in this case, MySql.Data...I get an error that says "Incompatible Reference" - "In order to add it you should to change the project's target to a compatible framework first" My project's target is set to .NET 4 and whether or not the reference I'm trying to add is or isn't set to .NET 4 I still get the error. Anyone got any suggestions? Thanks 回答1: well I'm not sure what the problem was but

Adding custom information to CSPROJ files

ぃ、小莉子 提交于 2019-12-08 16:03:15
问题 As part of our development life cycle we have a number of process that we run against the C# source in our projects. The processes are driven off a GUI that currently reads the *.csproj file to find the source files used within the project. This works fine. We now have a new requirement to provide some validation processes that require a call out to a web-service. The web-service needs to be provided with some credentials that are project specific. Ideally we could enter and store these

Not all of a library's refrenced DLLs are copied local when refrencing from another project

独自空忆成欢 提交于 2019-12-08 10:49:23
问题 I am trying to work with the LEADTOOLS imaging library, they have a large set of dll's that need to be referenced. The way our design is set up we have a core library that all of our projects are based off of, all of the DLL's that LEADTOOLS needs are loaded to our base library, and they get copied local to it's build path, but when we use our sub projects only some of the DLL's are copied locally (LeadTools.Codecs.dll and LeadTools.dll to be specific). There is no difference in settings