Missing .csproj file [closed] - c#

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 1 year ago.
Improve this question
In Visual Studio 2019 all files like .aspx, .aspx.cs, .js, images are showing. I am missing .csproj and .sln files. to open and try to complie. What might have happened? any sort of idea appreciated.

Create a new project and copy the files from the old project to the new project.
Cheers

Pick one:
You deleted them by accident.
Some other software (or add-on) you were messing with deleted them.
Whatever you actually did is something that normally will not lead to the creation of .csproj/.sln files, such as opening the .aspx, .aspx.cs, .js, images, etc. manually in VS without opening or creating an actual project or solution.
The .csproj/.sln files are not missing. Whatever you experienced led you to the false belief the .csproj and .sln files would be missing. But in reality, whatever you saw and witnessed is an expression of another problem, not of the .csproj/.sln files missing.

Related

Multiple exe and dll file in one MSI using Visual Studio [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 4 years ago.
Improve this question
I'm trying to merge multiple exe and dll files in one MSI file in order to install all of them using one installation file by using visual studio.
In addition to that I don't have the source code for the exe files. I used winx tools to have an exe file but I had the source code.
I'm guessing that you've been looking at Visual Studio setup examples that show build project output as an input to the setup project, and that's perhaps why you mention that you don't have access to the sources that would be used for the build.
The File View on Target System view in installer projects has destination folders (such as Application Folder). To add an exe or Dll just drag and drop the file into that folder, or right-click in the pane and do an Add File. Other files might go to Common Files, so again just add the files to that folder pane. Some of the time you may want to add the company name if it's not already part of the folder name.
This might help, it's old but installer projects are still like this:
https://www.red-gate.com/simple-talk/dotnet/visual-studio/getting-started-with-setup-projects/

How can I compile a C# code if my project is split into several source files? [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 4 years ago.
Improve this question
I wrote a simple two-class project in C# and as I would do in Java I split the classes into two separate source files. When I try to run the source file with main, the compiler does not find the other file. What should I include to make it work?
I have one file with the class main and another file with a class Foo.cs.
They are in the same namespace
A good start would be to use an IDE like Visual Studio (The community edition is free) and it can be downloaded from Microsoft.
Create a new solution and project
Import the files (for VS, right click --> Add --> Existing item.
Compile the solution with the IDE

What is the difference between File and Project [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
In New File I can choose empty class but it does not close the project I am working on. As in the title, what is the difference between a file and a project?
One ore more files create a project and one ore more projects create a solution.
You are probably adding a new file to you're existing project.
Projects are "buildable" things (they have output) and are composed of files. Thus, adding a new file has no reason to "close" the project (whatever that means).
When you get far enough, Solutions are "groups" of projects. Adding a new project to a solution doesn't close anything either.
In any IDE, project is a logical collection of different types of files, such as programs, resources, configuration files etc. There are so many different formats for storing the project information on disk such as .xproj, .csproj etc.
A "solution" is a logical collection of projects. A solution can have just one project in that as well. Solution is stored on disk typically by .sln extension by visual studio. In a solution, programmer can specify the build order of the projects, build configurations etc.

Can a .cs file override the code in the bin file for a compiled Asp.net site? [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
I have take over a old asp.net website and there is no Visual Studio Project for it. If i want to change some functionality, is there a way to put in a .cs file overriding the logic in the bin file?
I am not aware of any other solution but one.
You can decompile the whole dll, create a new project and attach all classes there. Then recompile and replace an old dll with a new one.
You may need to decompile the whole web site, as it is likely there will be some dependencies to other dlls.
For anyone who stumbles across this question, I'd like to suggest an alternate approach. Take a look at Fody. Fody is an IL weaving tool which allows you to weave in changes to existing .dll compiled files. Here is a Basic Fody Addin Project. You'll notice Fody would allow you to inject or 'weave' code changes into the IL without a decompile.

soft stoppped working [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 8 years ago.
Improve this question
this is might be really weird, but I have no idea what kinda wizardry of this. Basically, my Visual Studio stopped responding to my changes, it stopped building solution. I can comment code, which would completely ruin the logic of program, and Visual Studio will still run program that I guess it has in memory. It's really annoying, and I have no idea what it is. I keep restarting software, but it's still does the same. It's a licensed software. I was wondering If someone knew what was going on. Thanks!
I've seen this a few times, and usually one of or a combination of the following will work:
Clean the solution, then build it.
Change the from "Release" to Debug (or vice-cversa) then clean and build, then revert back.
Close visual studio and manually delete everything in the \bin directory
For an asp.net website, close visual studio and delete the files in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files (Path will vary depending on your machine setup This is where my ASP.NET versino 4 files are compiled to.)

Categories