Questions tagged [visual-studio-project]
81 questions
3
votes
1 answer
.NET SDK project type reference issue
I have this in my new style .csproj:
Exe
net461

ErikEJ
- 40,951
- 5
- 75
- 115
3
votes
1 answer
MSBuild: How to add library reference in Visual studio project without build number?
I faced an error, when I am trying to add NuGet library reference to Visual Studio project.
In Visual Studio project reference specified like:

Alex
- 842
- 11
- 33
3
votes
2 answers
How to automatically include generated source files into a C# project in Visual Studio?
I have a situation where I need to generate a bunch of C# code files in a prebuild step of a project and include the generated files into the current project for compilation. Is there a way to do this cleanly without having to muck with the project…

Charles Prakash Dasari
- 4,964
- 1
- 27
- 46
3
votes
3 answers
Adding Visual Studio .resx files in cmake
In CMake, while it is a great cross platform tool, it is also great for managing complex and large configurations. One road block I am hitting is allowing an otherwise cross platform project to have special "Visual Studio" only projects. Namely, I…

DigitalInBlue
- 299
- 3
- 10
2
votes
1 answer
How do I remove files added as link from my project on Visual Studio?
Inside a solution I'm building with Visual Studio 2019, I have a project for a console application. Inside of this project there are references to other files in different solutions, added with the:
Right click on the project → Add → Reference →…

Pine Code
- 2,466
- 3
- 18
- 43
2
votes
2 answers
design/structuring a large/enterprice signalr core project - multiple hubs? only one hub?
How to structure a SignalR core project for an enterprise application?
An application that has a lot of functionalities as so a lot of classes and methods to invoke.
Multiple hubs for different areas?
Only one hub that dispatch to different…

pinale
- 2,060
- 6
- 38
- 72
2
votes
3 answers
Creating setup project with single output file (Visual Studio 2005)
I'm using visual studio 2005 Setup project to create an installer for my application.
The outputs of the setup projects are:
- Setup.exe (a bootstrapper which makes installed .Net framework if it doesn't exist)
- .Net framework folder (for…
Nir
2
votes
1 answer
Connecting VS Project to SQL Server
TL;DR so you stop putting this on hold:
Visual Studio will not allow me to create a live connection to a database on an SQL server within a project, even though it can communicate with the server outside of projects. I want it to have a live…

Laura
- 25
- 4
2
votes
1 answer
Automatize Integration Services Project Password for Visual Studio Solution
I have a Visual Studio solution with multiple projects and they use the protection level: "Encrypt sensitive with password", so every time that the solution is loaded I have to enter the password manually for each project.
There's a way to…

lordmaster07
- 21
- 2
2
votes
4 answers
External tool (esriRegasm.exe) fails during build. Where in my VS project is it executed?
I am trying to compile a sample from ESRI and I get this error
Error 1: The command "esriRegasm.exe CommandInheritingBaseCommand.dll" /p:Desktop /s" exited with code -1.
So, there must be a command to invoke esriRegasm.exe somewhere in the…

patrick
- 16,091
- 29
- 100
- 164
2
votes
2 answers
how to create a f# windows application (no cmd window) without visual studio
Is it possible to create a Winforms Application in F#, where no CMD Window will be opened, without using Visual Studio?
I know that I could simply create a VS Project and set the 'Output type' to 'Windows Application'. But I really like the approach…

grafoo
- 95
- 5
2
votes
0 answers
Dynamically included file not displayed in Visual Studio C++ 2013 Solution Explorer after at least one filter was created
Introduction
In our project Visual Studio C++ is used as a code editor, while the build is delegated to a GNU make based build system which supports multiple target platforms. The build delegation from Visual Studio to the build system is…

vegasol
- 21
- 3
1
vote
0 answers
Reusable windows service project
I've made a windows service with a timer (I've seen discussions about timer-driven windows services vs windows task scheduler, and still want to go with my own windows service) that runs some business logic.
To separate my concerns and make it easy…

mo.
- 4,165
- 3
- 34
- 45
1
vote
1 answer
Can I change the content of default files in a Visual Studio project type?
In Visual Studio 2019, when I create a new .NET Framework Console Application in C#, it places the entry point in a class called Program in a file named Program.cs and a namespace with the same name as my project:
namespace ProjectName
{
class…

Govind Parmar
- 20,656
- 7
- 53
- 85
1
vote
1 answer
Multiple-variant MSVS project fails in SCons
I am trying to set up visual studio projects with debug and release builds in a large SCons project. The manual proclaims
Multiple calls to MSVSProject with different variants are allowed; all variants will be added to the project file with their…

Vegard
- 47
- 4