projects-and-solutions

Visual studio not copying content files from indirectly referenced project

倖福魔咒の 提交于 2019-12-17 18:25:37
问题 I have the following project structure: Library1 <--[project reference]-- Library2 <--[ref]-- Executable -------- -------- ---------- ContentFile .cs files .cs files .cs files All project references have CopyLocal = true. When I build the project, the ContentFile gets copied to Library2 's output directory, but not to Executable 's output directory, meaning that the executable is missing ContentFile when the application runs. Why is the content file being copied to Library2 's output

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

狂风中的少年 提交于 2019-12-17 16:35:11
问题 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 instead. In the project properties, I simply switched the setting that changes it from a console application to a library, but the constraint that you can only build it for x86 is still in effect. I can't change the build type to Any CPU now that it is a console application, which should now be valid.

“Add as Link” for folders in Visual Studio projects

筅森魡賤 提交于 2019-12-17 15:05:28
问题 In Visual Studio, we can "Add as link" to add a link to a file in another project in the solution. Is there any way to do this for entire folders, so that an entire folder in project A will be visible in project B, without the need to manually link to new items in that folder? 回答1: As this blogpost stated, it is possible. <ItemGroup> <Compile Include="any_abs_or_rel_path\**\*.*"> <Link>%(RecursiveDir)%(FileName)%(Extension)</Link> </Compile> </ItemGroup> But be aware, the files will not be

“Add as Link” for folders in Visual Studio projects

十年热恋 提交于 2019-12-17 15:04:47
问题 In Visual Studio, we can "Add as link" to add a link to a file in another project in the solution. Is there any way to do this for entire folders, so that an entire folder in project A will be visible in project B, without the need to manually link to new items in that folder? 回答1: As this blogpost stated, it is possible. <ItemGroup> <Compile Include="any_abs_or_rel_path\**\*.*"> <Link>%(RecursiveDir)%(FileName)%(Extension)</Link> </Compile> </ItemGroup> But be aware, the files will not be

Best practices for large solutions in Visual Studio (2008) [closed]

丶灬走出姿态 提交于 2019-12-17 15:02:03
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . We have a solution with around 100+ projects, most of them C#. Naturally, it takes a long time to both open and build, so I am looking

Best practices for large solutions in Visual Studio (2008) [closed]

痞子三分冷 提交于 2019-12-17 15:00:06
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . We have a solution with around 100+ projects, most of them C#. Naturally, it takes a long time to both open and build, so I am looking

Visual Studio 2012 doesn't convert vs2010 solution?

点点圈 提交于 2019-12-17 11:00:41
问题 I opened my vs2010 solution with vs2012 but it didn't make any conversion as from 2008 to 2010 was happening. So my solution still remains the same as 10 label on it. when I make a new solution of course it has 11 label on it. I haven't got any problem running like that but I am curious. Is there any difference? if yes, how to convert into vs2012 solution? 回答1: There are some exceptions, but mostly you'll be able to open the same project and solution files files in both VS2012 and VS2010 SP1.

Developing a Robocode type game with .Net, for a School Assignment

走远了吗. 提交于 2019-12-17 09:53:31
问题 I am currently in my final year at school, studying for a Higher National Diploma in Computer Studies, and basically in this final semester, we need to develop a Software Project, that basically incorporates a whole system. Now, what I'm thinking of doing is something along the lines of Robocode, but instead of Java, I will be doing this with the .Net Framework. What is Robocode ? For those of you don't know what Robocode is, it's basically a sort of programming game in where people develop

How can I refer to a project from another one in c#?

故事扮演 提交于 2019-12-17 09:41:46
问题 I added a project, Project2, to my solution. It already had another project lets say Project 1. How can I call classes and methods from project2 into project1? What I did: I have Project 1 and its solution. I added Project 2 to Project 1's solution. Project 1 and Project 2 both have a namespace named Correction. Now, I called using Correction. However, in Project 1 typing Project2 gives me an error since its claiming that it does not know what it is. I also added project 2 as a reference.

How do you organize your version control repository?

佐手、 提交于 2019-12-17 04:10:22
问题 First, I know about this: How would you organize a Subversion repository for in house software projects? Next, the actual question: My team is restructuring our repository and I'm looking for hints on how to organize it. (SVN in this case). Here's what we came up with. We have one repository, multiple projects and multiple svn:externals cross-references \commonTools /*tools used in all projects. Referenced in each project with svn:externals*/ \NUnit.v2.4.8 \NCover.v.1.5.8 \<other similar