Questions tagged [visual-studio-project]
81 questions
1
vote
2 answers
How can I access the currently opened project's types(classes) from a Visual Studio add-in?
How can I access the currently opened project's types(classes) from a Visual Studio add-in(be able to create instances of those classes within the add-in)? Is this possible through reflection? Or maybe dynamically include the project's assembly as a…

luvieere
- 37,065
- 18
- 127
- 179
1
vote
1 answer
What project type should I add as the "Core" project in a Xamarin solution?
I started off my Xamarin project with an Android project. iOS and Windows Phone projects will come later. What I want now is a "Core" project (C#) for the business layer to be referenced by the Android project (and later shared with the…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
1
vote
1 answer
Inserting a lot of data from gridView to Database in small time
The thing is this, Currently I'm developing some sort of application where I have to upload data from an excel sheet, and the save it into a database table (oracle). I managed to accomplish this process by the OracleDataAdapter class
_adapter = new…

Abstract
- 664
- 1
- 5
- 15
1
vote
2 answers
Determine programmatically the index in the solution of project- C#
The method Solution.Projects.Index(Object index) get an index of project as number.
I have the name of the project. How can I determine the index in the solution of this project programmatically?

user3114639
- 1,895
- 16
- 42
1
vote
1 answer
How to show/select the team foundation currently working project in visual studio 2012?
I got a little problem with visual studio 2012. The annoying problem is that if iam working on any project however visual studio 2012 doesnt mark/show me the currently project in the Team Foundation list(Dont know the name) where iam working at. Is…

C0d1ngJammer
- 550
- 1
- 6
- 21
0
votes
1 answer
When to use multiple projects on the same Visual Studio solution?
I'm working on a WinForms app, inside a bigger, main WinForms app that launches other Forms.
You have a big menu with apps you can click and launch (mine is one of them). At the beginning of the project, I've been recommended to create everything…

funk4del1c
- 3
- 4
0
votes
0 answers
MSI Installer prompting for elevated instructions C# Visual Studio Projects
I have configured a msi installer using VS Projects and when installing it is working fine with the accounts of all users in my organization. The problem arises when someone tries to uninstall the same. it starts prompting for elevated access which…
0
votes
0 answers
SSIS - Cannot connect to excel source and load any views or tables. Visual studio version 2022
I have a problem when importing data in SSIS from an excel source.
I have the Visual Studio Professional 2022 installed and excel’s version is Microsoft® Excel® for Microsoft 365 MSO (Version 2301 Build 16.0.16026.20214) 32-bit. My system type is…

Bich Le The
- 27
- 8
0
votes
0 answers
In Visual Studio - when creating new solution, is there an option to not create a nested folder? (SQL Database Project)
I'm trying to create a SQL Database Project in VS 2022, but it keeps creating a nested folder that I don't want.
I have the following folder cloned from a github repo... /repos/ClonedRepo
I go to create a SQL Database project
And I end up with…

delydelydely1
- 1
- 1
0
votes
1 answer
VS22 python - txt file in project and labeled as content cannot be found
I've been receiving this error for quite some time on a few assignments.
Message=[Errno 2] No such file or directory: 'frankenstein.txt'
Source=C:\Users\richy\OneDrive\Documents\Python Scripts\CIS 521\CIS 521\CIS 521\Homework8\homework8.py
…
0
votes
1 answer
How to reference .Net 6.0 project from WinUI 3 project?
I have a .NET 6.0 C# class library project that contains platform-independent code (let's call this BusinessLogic). In my same solution, I would like to create a project for a WinUI 3 app that references this class library (let's call this…

Michael Kintscher they-them
- 703
- 7
- 19
0
votes
2 answers
How to include functionality from one project into another in the same solution?
In my company, we are creating C# client/server applications as follows:
We create three project inside one single Visual Studio solution:
Product.General
Product.Client
Product.Server
The "General" project contains functionality, to be used by…

Dominique
- 16,450
- 15
- 56
- 112
0
votes
1 answer
Unable to add a reference to project - UWP to Class Library project?
A WPF project and a UWP project share the same solution. Can both projects reference a common project?
"Common" - .NET 6 target framework, class library
"UWP" - targets Windows 10 Creators Update (Build 15063)
"WPF App" - .NET 6 target framework,…

Denis G. Labrecque
- 1,023
- 13
- 29
0
votes
1 answer
Visual Studio Project with Only Arbritary Files
I have an old Perl web site which I need to maintain, and I want to use Visual Studio do to this (mainly to take advantage of the TFS source control integration).
How can I create a project file (similar to .csproj) which will work with the files…

RobSiklos
- 8,348
- 5
- 47
- 77
0
votes
1 answer
Visual Studio 2019 build errors
I have API project (.NET Framework 4.6) that contains a lot of different controllers, nuget packages, swagger, EF etc.
If i load this project & make a build - everything succeeded (No issue found) and i can deploy my project to DevOps. However if i…

Randy Marsh
- 87
- 6