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 5 years ago.
Improve this question
I only know html and css.
And now I need to study c#
Can someone please explain what happens when i click the run button on my visual studio?
When does translating the souce code into machine code happens?
when does visual studio create an .exe?
Does this executable is already MSIL code already?
I already read some introduction of c#. But still i dont understand a thing.
I only need idea on how things works.
Thank you so much.
When you press the run button, it compiles and build the assemblies and executable file from the source code.
You can find your exe in the bin folder.
Check this link
Related
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 4 years ago.
Improve this question
I am a student and I am during my final project.
In my project I give an option to edit code and run it. The problem is, that I do not know how to create a new exe file after changing the code.
I would be happy if you can help me !!!
Thank you very much!
You can compile code into assemblies and then execute them as such.
This example should cover what I mean:
https://csharp.hotexamples.com/examples/System.CodeDom.Compiler/CodeDomProvider/CompileAssemblyFromFile/php-codedomprovider-compileassemblyfromfile-method-examples.html
You can access the compiled assembly from CompiledResults and run it directly in the current AppDomain like a script of some sorts or you can store it to an .exe
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 just have written a code in C# its a web browser using Visual Studio 2015
How do i make it compiled to .exe file and etc, like chrome mozilla etc.
Help appriciated.
Assuming you set up your project correctly in VS, it's Ctrl-Shft-B to compile. The exe / dll files should end up wherever specified by your Build Output directory. To learn about/change this see Change Build Output Directory.
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 years ago.
Improve this question
I have a project in C#, it's called "Music Manager". When you choose a folder, the program will show all of music files in this folder, but if you have so much files in folder, the program will be crashes.
I think the solution is use thread, but I don't know how to use it? If anyone know, please help me. Thanks!
First of all, you should specify the error message, but I don't think a thread would help you in this one, because i guess it crashes for an outofmemory (as it happens when there are a lot of files).
I've had a quick look at your project and i see you have a List populated from DirectoryInfo. Do you need all the fileinfo in a List? I suggest you use just a List and store only filename/path.
P.S. How many files do you have in your directory when it crashes? Just curious
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 years ago.
Improve this question
I have a solution under TFS source control and had written some sample code using an external library that was deleted a few months ago. I am certain that the code was checked in before that class file was deleted.
I am able to manually browse to previous versions of even deleted files and copy old code but the number of check-ins is massive since then.
Is there a way to programmatically access TFS history using C# so I can automate the process of "Find in historic/deleted files"?
I know people have written scripts in PowerShell for TFS but I'd prefer to write a C# utility if it is possible. Any hints in the right direction would be appreciated.
Shai Raiten's Blog is great for learning the TFS API.
For getting file history - read this post:
http://blogs.microsoft.co.il/shair/2014/09/10/tfs-api-part-55-source-control-get-history/
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.)