How Can I Share Document Files with Multiple Web Projects? [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have three ASP.NET MVC Projects. before I use one single Directory to manage documents/files, and all projects can access from that source, but now I have to store files in particular projects (under App_Data) and have to access from other projects.
My question is, how can I manage this?

Linking files in Visual Studio could perhaps be a solution to your problem.
https://jeremybytes.blogspot.com/2019/07/linking-files-in-visual-studio.html
I used it myself the other day where I needed a single .csv file available in multiple projects.

Related

Organize C# app dependencies into subfolders [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
Improve this question
I want to organize my app's files because it's honestly just messy having to keep every DLL in one folder, and if I make a self contained app I end up with 200+ DLLs mixed in with the executable which is just completely unacceptable.
I want to layout the files kind of like this
-dotnet (folder for dotnet DLLs, if it's a self contained app)
-mylibraries (folder for any of my own DLLs being used)
-App.dll
-App.exe
I have tried using a config file to specify a probing path or a code base, neither made a difference. I also tried using PrettyBin but I couldn't figure out how to use it.

Reference c# class through multiple solutions [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have 2 separation solutions. One is done using MVC (Solutions 1) and the other is done using Web Forms (Solution 2). I have a class in one of the solutions (MVC one) that I like to use in the Web Forms solution. How would I reference the class in Solution 1 through Solution 2?
It depends on where the class is located. Ideally you would move your class out into its own project so that you can add the project to the other solution. You could also add an existing item from your MVC solution but this can lead to all kinds of dependency problems and shouldn't be done.

is there a way to know where is the solution from a published site folder? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have a published website that I need to modify, but could not find the solution to open the project. Is there a file, even in the IIS or in the published website folder that could have the path of where that project is?
There is no way knowing where your solution is other than searching your hard drives for "*.sln"

Benefits of having multiple Web.Config files in ASP.NET Application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We can have multiple web.config files in asp.net application.
What are the advantages of having multiple web.config files?
Please any one give a better solution for this question..
web.confing apply it's settings to all application if it is at root and only one web.config is present. but suppose there is one additional web.config in any particular folder then it's settings will affect only that particular folder and subfolders of that folder. Files on root folder will refer only web.config at root.

What is the simple way to synchronize to folder using .Net? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
What is the simple way to synchronize files between source and target directories in .Net without using other libraries?
You can use the Microsoft Sync Framework.
Here is an example from MSDN for synchronizing files using the above.
Robomojo - A .Net shell for RoboCopy.
http://robomojo.codeplex.com/
A .Net shell for RoboCopy. Copy whole directory structures with ease. Ideal for backups and deployments. Store your RoboCopy.exe commands for easy (and repeatable) use. WPF front-end, DI data access.

Categories