Dynamic Development in ASP.NET 5 [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 7 years ago.
Improve this question
ASP.NET 5 is available as a preview release with Visual Studio 2015.There is a new feature called Dynamic Development, that mean we don't have to compile our code whenever we make changes. Now my question are,
1)What are the other benefits of dynamic compilation.
2)Beside ASP.NET What other framework use Dynamic compilation.
3)Do we still need Build and Rebuild option?
Thanks

There is a new feature called Dynamic Development, that mean we don't
have to compile our code whenever we make changes.
It's important not to misunderstand that we don't have to compile our code at all when we make changes. Dynamic compilation only comes into play when debugging, making development more efficient as we can make code changes without recompiling first.
As for your questions:
1) That's whole the feature, I don't think there's more to it.
2) You can do something similar WPF and Win Forms (not sure about any others), but only while stepping through code with the debugger.
3) Build and Rebuild aren't going anywhere and are needed. They're used when compiling code at compile time. Dynamic Compilation is for compilation during runtime (2 different things)
Have a look at this article from Scott Guthrie under Dynamic Development, can't say it simpler than that.

Related

How to enforce style rules in a messy code base? [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've inherited a team who uses TFS 2012, with no checkin-rules whatsoever.
Our code base is often polluted by poor quality code, modifications to files that should be read-only, almost no-unit test coverage.
What can we use that will block poor-quality checkins? We currently all have resharper licenses.
Because you are using Resharper, I would recommend the Code Cleanup feature. It allows you to create a set of formatting rules that can be applied to a file when your run Code Cleanup. My team has a common Resharper settings file for code formatting that is checked into TFS.
After creating the rules, getting it checked in, getting buy in from your team, and setting up the file on everyone ones machine, I would recommend the following pattern:
Open / Check out file from TFS
If the code needs to be cleaned up, run code clean up
Check In the code that has been cleaned up
Check out the code again
Make edits
If you don't check in the code in until after you have cleaned it up and made your edit, the diff is very hard to tell what was changed.
You will have to get the buy in from your team to start running code cleanup. Either that or Code Cleanup is supported on a folder, project, and solution level, so you could just open all of the solutions and clean the up yourself.

What are the processes that the .net compiler does in order to compile code? [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
first I want to say that I'm not sure if this is the best stack-exchange site to post this type of question but I'm not sure where it would fit the best. Anyway as the questions title's says I want to know the steps the .net compiler does when converting my C# code to a machine language one. I've watched some videos however there are some stuff that I still don't quite understand. I will leave all my question's at the bottom and I will try to be as specific as possible.
Here's my understanding of how the .net compiler works
My C# code -> IL -> JIT -> Assembler code
What is the exact term of "My C# code" ?
What is the use of CLR in here ?
Is this entire process handled by the CLR or where does it even comes in ?
What is Metadata ?
Is there something additional that happens in between those transition from step 1 to step 2 and from step 2 to step 3 or it's just some code being translated to a lower-level language ?
Just C# (C# -> Roslyn (or csc) -> IL -> JIT -> Native)
The CLR is what reads your IL, JIT's it and holds the GC (and much, much more that doesn't pertain to this question)
The CLR only runs your compiled code. C# compilation is done through a normal compiler (which was csc.exe, but is now deprecated by Roslyn).
There are plenty of examples that state what Metadata is
There is a lot that goes on in those steps, but that is the primary flow.

Ability to extend app with scripts [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 years ago.
Improve this question
Is it possible to make C# app use external scripts? Luke if i make shell application and i want to allow pepole add their own scripts (type command to add script from file and then execute it by command (example: 'calculator') I'll accept all ways to do this.
Not sure if this is what you are looking for, but by using the dynamic language runtime in .net you can integrate dynamic languages like ruby into your application. You could then write scripts in that language and interpret them in your app. I have used this to implement a plug-in system for one application, in which plug-ins (scripts) could be dynamically (at run-time) loaded into it without the need to recompile everything.
Two options come to mind:
Roslyn: It's now possible to embed C# scripts using the Roslyn scripting API. There are some samples in the GitHub wiki to get you started.
DLR: Scripting via the DLR is also possible. Here's an example that illustrates how to run an IronPython script from inside your C# app. However, my (highly subjective) impression is that Roslyn is generating more developer interest than IronPython/DLR these days.

Does debugger have a load timer somewhere? [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
I just bought visual studio 2013, and am using the debugger. I am wondering if there is something built in that will tell you how long something takes to load--How long a variable takes to get populated, one breakpoint to another, etc. Is this possible somehow?
You can use Profilers for such statistics.
Have look at Analyzing Application Performance by Using Profiling Tools.
I would also recommend watching Visual Studio 2013 Performance and Diagnostic Hub
For good dotnet Profilers have a look at this post :
What Are Some Good .NET Profilers?
As a side note:
There are different profilers for different languages and chores, you need to specify what exactly you need, then you can pick their respective profilers.
For example if you needed to work with DataBases, you could use sqlsever profiler, or Oracle profiler,(all major DMBSs have their profilers) the same thing goes to c++, etc

What is the best way to learn a new library written in C# using Visual Studio 2010 [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I recently found the need to learn a new library that didn't come with extensive documentation for a change. The code is written in C# and I am using Visual Studio 2010 as my editor. The library that I am trying to learn did come with a sample driver, but it is fairly large and complex as well. I was wondering if there are any facilities in VS that would allow me to watch the code as it is executing so that I learn as it runs.
Is anyone aware of any tools that I should be looking at in VS and additionally, in general can you specify any other methods that I might use to quickly learn how to use new libraries.
Thanks
Write learning tests.
Red Gate's Reflector is a must have for looking into 3rd party library's and there are a couple plugins for it (FileDisassembler is one) that allow you to save your dissasembled files so that you can step through the code.
You can set a BreakPoint at any line you you want the program to stop at, and when you run it in debug mode, you will then be able to execute a single line of code at a time, by pressing F11 or F10 (F10 does not go deeper into inner function calls).

Categories