I am an experienced developer who is completely new to C# and windows development.
I would like to contribute to Rocksmith custom song creator with a simple feature, but I don't even know how to build and run the project in Visual Studio 2012. I cloned the git repository, double clicked on devtools/devtools.csproj then Debug -> Start Debugging but I get an error about not being able to start a class directly.
You can browse the source code of the project at: https://code.google.com/p/rocksmith-custom-song-creator/source/browse/
From what I can tell, you have selected a sub-project in your solution to be the starting-project.
See, if there is project that defines a Window (WinForms or WPF), right-click this project and select it as starting project.
From MSDN
You can specify which project or projects within a multi-project solution Visual Studio will build and debug first.
To set a single startup project
In Solution Explorer, select the desired startup project within your solution.
On the Project menu, choose Set as StartUp Project.
The .csproj is just a project, you need to put that into a Solution (or open the solution included, if any)
Do you have a .sln file? Probably that's the one you must open.
Related
In Visual Studio, I have 2 projects in my solution which are the main project and the tool project.
My single application uses both main project and tool project.
I want to make a single installer for my application.
I have solved this problem by following this.
https://www.youtube.com/watch?v=LBVyrZuSsQE
but I change "Add Project Outputs" to "Add Folder" (so I add 2 project folder here) in this process.
https://s24.postimg.org/7a7snduyd/Add_folder.png
Then, in the "Application Shortcuts" process, I select the shortcut from main project folder.
Anyway, Thank you for encouraging me to solve this problem
Sincerely
Mr.PePae
I am just wondering if there is a somewhat simple way to use a Windows Forms Application program outside of Visual Studios. If so could someone elaborate on it?
When you have compiled the files simply navigate to the
Debug/Release folder
and run the executable. Any dependencies can be configured to be output to that folder in
Project properties (Build Tab, Output path)
You can also set references to Copy local in the Property Window within Visual Studio, which ensures references are copied to Debug/Release folder depending on which configuration you have Visual studio in.
Or build an installer as Brian describes.
Yes. The steps to do this can be found here.
In a nutshell:
Add a new install project to your solution.
Add targets from all of the projects you want to be installed.
Configure pre-requisites and choose the location from where missing components must be installed (if applicable).
Configure your installer settings - company name, version...
Build the project and you are good-to-go.
Run the installer (setup.exe) or right-click the setup project in the solution explorer and select "Install", then run it from the install folder like any other app. (thank you, retailcoder)
It can be as simple or complex as you would like it to be.
I have a solution under source control, one of the projects in it is vdproj (Visual Studio Deployment Project) or setup project, this project gives me very annoying tens of messages every time i try to build the solution
---------------------------
Microsoft Visual Studio
---------------------------
The command you are attempting cannot be completed because the file 'XXXXInstaller.vdproj' is under source code control and is not checked out.
---------------------------
OK Help
---------------------------
The question is: How to unload this project from the solution, when i try to unload it, there are no such option in the right-click context menu!
I've found the issue raised on Microsoft Connect. It seems that "unload" is supported, but just not shown on the context menu. In other words, selecting the project and using the normal "Project" menu (next to "View") still shows the option "Unload project".
Another idea: If you keep your the deployment projects in a solution folder, you can use "Unload all projects in solution folder" from the context menu provided by the Microsoft Productivity Power Tools.
#MSS, as a work around you can edit the solution file by commenting the corresponding .vdproj project.
You can also select multiple projects in Solution Explorer (you will be able to unload at least one of them) and unload them. Then reload required projects.
I have Visual studio project about dataTier application, I prepared a project and in the same solution I have windows from application project.
I want to add as a reference dataTier project to Windows from project.
How can I do it?
Data tier Project in visual studio has no .exe or .dll file so I can not add it as a reference.
The Data tier Project will produce a .exe or .dll file if it compiles successfully on build. Looking in the Project Folder, you'll usually find it in the \bin\Debug or bin\Release subfolder (depending on which build configuration you've used).
But usually you don't want to add a reference in this way. If you right-click on a Project name in Visual Studio, you'll be presented with a menu which has an 'Add Reference' menu item. Click on this, then choose 'Projects' as the type of reference you want to add. You should see all other Projects which are included in the Visual Studio Solution. Just choose the one you want to reference and that's it.
EDIT: Ah, I realise now you're probably talking about the SQL Server Data Tier project type, which contains SQL scripts rather than compiled code so therefore can't be referenced by a C# project.
So, what are you actually trying to achieve here?
I have added the command BuildOnlyProject to the Menu. But it is always disabled. It is also disabled, when I select a Project-Node in the Solutionexplorer.
Does someone know why?
Thanks and best regards, Thomas
Visual Studio does not support project only builds for C# or Visual Basic projects, only for C++ projects. If you have a mixed solution with both C# and C++ projects in it you can select a C++ project in the Solution Explorer and you will see:
Build -> Project Only -> Build Only CPlusPlusProjectName
in the menu. Using this menu option will literally cause just a single project to be built as demonstrated by the output window. On the other hand, if you select a C# project, the "Project Only" sub-menu will be gone and the only way to build the project will be with:
Build -> Build CSharpProjectName
When you use this menu option the selected project and any other projects that the project depends on will also be built, often several projects in all.
This is why if you select a project that is not a C++ project the "Build Only Project" command will be disabled.
Do you want anything to happen that would be different from the command Build.BuildSelection? It seems that Build.BuildProjectOnly does not work, and MS seems to imply that what people want is Build.BuildSelection.
If you want to get dirty why not add a special build configuration to your project which only includes the one project you want to build
only the selected projects will be build.
MSBuild checks for a property called BuildProjectReferences. So if you're running MSBuild manually, you can issue:
MSBuild.exe My.Project.csproj /p:BuildProjectReferences=false