projects-and-solutions

Trouble when trying to open WPF project in Expression-Blend 4, which was created in Visual Studio 2010

南笙酒味 提交于 2019-12-12 08:48:58
问题 I'm create my WPF project in VS 2010. After I finished my work with functional GUI, I wanted to edit template of my controls in Blend 4. But when I open project in Blend, in DesignMode, he tell me Invalid XAML In Result window he wrote: [ControlName] is not supported in a Windows Presentation Foundation (WPF) project Where [ControlName] is list of default controls, which I have used in my project (such as Window, DockPanel, etc.) What to do to avoid this issues and be able to edit WPF forms

Add Service Reference to WCF Service within Same Project

自闭症网瘾萝莉.ら 提交于 2019-12-12 04:24:15
问题 Is it an acceptable programming practice to add a Service Reference to a Project where the Service being referenced is defined within the same VS Project? (Service and Service Reference are in the same Project) example: MyWebAppProj -Services --MyService -Service References --MyServiceServiceReference.MyServiceClient -Default.aspx.cs uses MyServiceServiceReference.MyServiceClient The rational behind this is that a Silverlight App may be added to the Project. If it is, we would have to expose

How to reference project with nuget

被刻印的时光 ゝ 提交于 2019-12-12 01:54:35
问题 I am trying to wrap extra functionality around json.net ( Newtonsoft.Json nuget) into class library Json : The problem: adding Json reference to Test doesn't add references to nuget auto-magically. The idea is to add reference to Json in multiple solutions afterwards. But I am only able to access Json types, Json.net namespaces aren't available. Point is: I reference Json , reference to Json is added, json.dll and Newtonsoft.Json.dll get copied on build, but Newtonsoft.Json.dll is not

Changing settings in multiple VS project

喜你入骨 提交于 2019-12-11 19:14:18
问题 Is there any way to change settings for multiple projects in a Visual Studio 2008 C++ solution? For example, adding a library dependancy for all the projects, or ignoring a specific warning. I am aware being able to change some global settings in the IDE itself, but I'm looking for settings which will be stored in the solution/project files. 回答1: In the Property Manager tab the Add New project property sheet context menu entry allows you to specify lots of settings to any project including

Parse ProjectDependency from .sln file

六月ゝ 毕业季﹏ 提交于 2019-12-11 07:18:06
问题 Project("{00000000-0000-0000-0000-000000000000}") = "Test Projects", "TestProjects", "{5FAF487E-B913-4D46-983E-CB13FDF36FCB}" EndProject Project("{11111111-1111-1111-1111-111111111111}") = "ProjPropHelperAPI", "ProjPropHelperAPI\ProjPropHelperAPI.vcxproj", "{22222222-2222-2222-2222-222222222222}" EndProject Project("{33333333-3333-3333-3333-333333333333}") = "ProjectPropertiesHelperAPI", "ProjectPropertiesHelperAPI\ProjectPropertiesHelperAPI.csproj", "{66666666-6666-6666-6666-666666666666}"

How to access selected project in Solution Explorer from a Visual Studio Add-In?

落爺英雄遲暮 提交于 2019-12-11 06:57:37
问题 I developed a VS 2008 add-in and added a custom menu item to context menu for "Project" nodes in Solution Explorer. This allows me to right-click any project in solution and perform a custom operation on that project. Or at least, it would, if I knew how to access the selected project from my Click event handler . Can someone with more experience please help me? 回答1: I think what you're looking for is DTE.ActiveSolutionProjects. 来源: https://stackoverflow.com/questions/1272022/how-to-access

What is the right way to add .NET project with NuGet dependencies to a git repo?

泪湿孤枕 提交于 2019-12-11 06:38:32
问题 I have a project(s) that I'm writing NUnit tests for (for example). I want to commit the code to git, but I also feel it's bad practice to commit the NuGet packages (NUnit and NUnit.Runner) to the repo. However, I don't want to also turn on Package restore either since I believe it's a user setting and not a project setting (IIRC). What is the right way to add .NET project with NuGet dependencies to a git repo? I assume it would be something that would happily grab the Packages but one that

Visual Studio: Exclude a class if compiling as a dll

此生再无相见时 提交于 2019-12-11 06:38:30
问题 I have a DLL project that I often compile as a .exe so that I can easily test the classes in it. One class contains a Main() method, which is useless when I compile it as a .dll file. I would like to automatically exclude this class from the project whenever I am compiling it as a class library. It seems like I must be one of the first people to run into this problem, as the almighty Google doesn't seem to have an answer for my question: How do I do this? 回答1: I would seriously consider unit

How to safely rename a class in Common project (shared by multiple solutions)

。_饼干妹妹 提交于 2019-12-11 06:24:49
问题 I have a "Common" project shared by multiple solutions. If I rename a class in the Common project, Visual Studio will refactor all code that uses that class, but on for the opened solution. Is it possible to force Visual Studio to refactor all solutions that use Common project? 回答1: You would need to have a separate solution that included all projects that referenced it. 来源: https://stackoverflow.com/questions/5304017/how-to-safely-rename-a-class-in-common-project-shared-by-multiple-solutions

Use a usercontrol from another project to current webpage

时间秒杀一切 提交于 2019-12-11 05:06:04
问题 I have created a test webform where it is under the AspPage Project. then I have 3 user controls in TestUserControl Project. Is it possible to register/add the user controls in the webpage? I have seen one tutorial where the user controls are copied in the pre compilation but it seems I get errors and that wouldn't work when published. I appreciate your help guys. Thanks in advance 回答1: Basically user controls in ASP.NET are not design to be reused between different project. That's why if you