Cookie Consent by Free Privacy Policy Generator ๐Ÿ“Œ Using Visual Studio Codespaces with .NET Core

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Using Visual Studio Codespaces with .NET Core


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: devblogs.microsoft.com

What a time to be a .NET developer!ย  Lots of great announcements at Build, new releases for .NET Core and new preview projects for cloud native development make me excited to be a .NET developer!

One of the new capabilities we announced at Build was the ability to use Visual Studio 2019 with Codespaces.ย  Visual Studio Codespaces is an online development environment that allows you to develop entirely in the cloud.ย  We want all of you to be able to try it out and encourage you to sign up for the private preview we have going right now.ย  Go ahead and head over and sign up for early access.ย  Itโ€™s okay, Iโ€™ll wait.

Okay, signed up for the early access?ย  Great, now let me tell you what the .NET team has been working on to enable .NET Core development in Codespaces.ย  We have initially focused our efforts on enabling the core editing, testing, debugging inner loop for .NET Core application types of class libraries, console apps, and web apps (including Web API).ย  At the time of this writing, Windows Forms designer for .NET Core will not be available, however you can still use C# to edit your project code.

C# and Razor Editing Experience

Once connected to a Codespace with your .NET Core project youโ€™ll see that the experience you are familiar with in writing C# remains familiar to your current local experience.ย  Leveraging most of the latest .NET productivity features and code refactoring youโ€™ve come to know are available and now powered by the service for your project.ย  It is our goal to ensure that the core developer experience with C# and .NET remain consistent when connecting to a Codespace.

Screenshot of code fixes in Visual Studio

We have done the work to add support for the various flavors of ASP.NET Core projects. You can do everything from Blazor development to ASP.NET Core MVC and Razor pages.

You can currently use a preview version of Razorโ€™s C#, HTML and Blazor/TagHelper completion:

TagHelper completion

We have also added the ability to hover over C#, HTML and Blazor/TagHelper pieces in order to have more context when navigating your Razor files:

Animated image of hover properties in Razor pages

Lastly, as developers it is nice to know about compiler errors in your Razor files whether it be from C#, HTML, or Razor itself. This is something we have added preview support for:

Animated image of a Razor compiler error warning

Test Experience

Along with your coding experience, we all know that you write incredible unit tests for your code.ย  You do, right?ย  Visual Studioโ€™s test experience is pretty great, and this was one of the capabilities that we enabled early on for Codespaces.ย  Enabling running your test suite using the cloud compute power we feel is a great value add for your inner loop experience.ย  You can continue to use Test Explorer to see and execute your tests.

Screenshot of Test Explorer

When they execute your Codespace will be the one taking the responsibility to run them so large iteration tests will be able to leverage more compute (assuming youโ€™ve chose a larger Codespace) and complete your tests quicker, then scale back if needed and continue development.ย  In my own unit tests, I bumped up one loop and saw 15s savings on just one test alone as I scaled up to a larger Codespace larger than my dev workstation.ย  We have more thoughts on testing in Codespaces to, so keep reading!

Building/Debugging

Of course, as any developer using Visual Studio, your inner loop experience is critical.ย  As you are developing your app your build and debug experience will also continue to be familiar in Codespaces. The difference isโ€ฆthat is right, the compilation and debugging is happening on the cloud in your Codespace.ย  Even so, your breakpoints, watch windows, immediate inspection of objects, etc. are there on your local workstation to interact with as you normally would.

While working on console applications (or other client apps) you will get an experience where your app is remoted back to you as seen here:

Screenshot of console window in LiveShare

You will still be able to interact with it, but it will be running in the cloud!ย  As we bring other client technologies online for Codespaces this will be the similar experience for those class of apps.

You may be asking yourself then If things are running in the cloud, how will my ASP.NET web app be browsable on localhost? Will I have to change my launch settings? No you will not!ย  We leverage the power of LiveShare technology to enable port forwarding of your localhost to the running app in the cloud.ย  For your first launch of your ASP.NET app youโ€™ll see a few prompts in order to trust the developer certificate created on the Codespace to your machine:

Trust certification dialog promptTrust Cert Dialog

Once you have accepted and trusted the developer cert, then when you launch your web app youโ€™ll interact normally with your local browser and still be able to debug normally.

Coming in the future

In addition to bringing more and more core functionality online, we are looking to continue leveraging the cloud compute to power some unique experiences. To give you a sneak peek we have been working on leveraging Codespaces to power the Live Unit Testing (we affectionately call LUT) experience using the cloud compute resources instead of local resources on your workstation:

Animated image of Live Unit Testing

And one of the capabilities that Codespaces enables developers as well is the potential to target multiple OS targets for specific scenarios.ย  Want to make sure your tests run Linux and Windows but not leave your dev environment?ย  No problem, just change the running target!

Animated image of changing a test target in Visual Studio

These experiences are just an example of what we are exploring as we leverage more cloud compute capabilities of Visual Studio Codespaces.

Expectations for .NET Core

Now that you are excited to use Codespaces with Visual Studio let me tell you where the support is in the current preview. For now, we recommend using Codespaces for .NET Core projects that are solely console, ASP.NET Core, or library apps. No designers are implemented so any apps with UI that relies on designers should wait for later versions. Think backend or middle-ware apps with few dependencies outside a public NuGet feed. Apps that are โ€˜server-readyโ€™ that run in relative isolation will be the easiest to start with. For this first preview version, no Azure services can connect to the development environment of your app including KeyVault and AAD integration. Some of the features you know and love like CodeLens, ENC, code actions with sub menus, NuGet Package Manager, etc. will also not be available in this first preview. Hopefully, this helps paint the picture of isolated, server-side apps that are good candidates for development in the Visual Studio Codespaces preview.

We are aware these constraints will affect some of you and we are continually working to enable as many of them as we can and will be updating the Codespaces service and Visual Studio as we implement the capabilities and more.

Summary

Did you see a theme here?ย  A big advantage for Codespaces for a good set of developers will be leveraging the power of cloud compute without sacrificing your experience and productivity on your workstation.ย  We would love for you to try out Codespaces with your .NET Core projects and give us feedback.ย  If you are looking for a project to use outside of your own to explore as well, head on over and use the eShopOnWeb reference app as weโ€™ve been using that one ourselves during our validation of capabilities.

Iโ€™m sure you already signed up for the early access like I asked in the beginning of this post, but just in case, hereโ€™s the link again to sign up!ย  After you get access, you will be able to create Codespaces for your repos and use Visual Studio 2019 to continue your development on them using the power of cloud compute!ย  As you have feedback please use the Feedback Tool in Visual Studio to report issues as this really helps us get the necessary diagnostics from the client and service to be able to better address the feedback.

On behalf of the entire .NET team helping to deliver great developer tools, thanks for reading and we look forward to your feedback!

The post Using Visual Studio Codespaces with .NET Core appeared first on .NET Blog.

...



๐Ÿ“Œ Microsoft integriert Visual Studio Codespaces in GitHub Codespaces


๐Ÿ“ˆ 54.86 Punkte

๐Ÿ“Œ Microsoft integriert Visual Studio Codespaces in GitHub Codespaces


๐Ÿ“ˆ 54.86 Punkte

๐Ÿ“Œ Using Visual Studio Codespaces with .NET Core


๐Ÿ“ˆ 52.43 Punkte

๐Ÿ“Œ Microsoft's Visual Studio Online Code Editor is Now Visual Studio Codespaces and Gets a Price Drop


๐Ÿ“ˆ 49.56 Punkte

๐Ÿ“Œ Visual Studio Codespaces - Visual Studio Remote Office Hours, July 9


๐Ÿ“ˆ 49.56 Punkte

๐Ÿ“Œ Expanding Visual Studio 2019 support for Visual Studio Codespaces


๐Ÿ“ˆ 49.56 Punkte

๐Ÿ“Œ Visual Studio for Mac + ASP.NET Core โ€“ Deploy eShopOnWeb to Azure using Visual Studio for Mac


๐Ÿ“ˆ 47.13 Punkte

๐Ÿ“Œ Visual Studio for Mac + ASP.NET Core โ€“ Getting started with ASP.NET Core using eShopOnWeb


๐Ÿ“ˆ 44.91 Punkte

๐Ÿ“Œ Kalenderwoche 42/2018 fรผr Entwickler im Rรผckblick: Visual Studio 2019, Visual Studio for Mac, .NET Core 2.2 und mehr


๐Ÿ“ˆ 42.05 Punkte

๐Ÿ“Œ Visual Studio for Mac: Improved productivity for .NET Core developers | Visual Studio Toolbox


๐Ÿ“ˆ 42.05 Punkte

๐Ÿ“Œ ASP.NET Core 3.0 development using Visual Studio for Mac | On .NET


๐Ÿ“ˆ 38.65 Punkte

๐Ÿ“Œ Visual Studio 2019 Launch: A tour of Visual Studio for Mac for .NET development


๐Ÿ“ˆ 35.79 Punkte

๐Ÿ“Œ Visual Studio 2019 Launch: A tour of Visual Studio for Mac for .NET development


๐Ÿ“ˆ 35.79 Punkte

๐Ÿ“Œ Visual Studio 2019 Launch: A tour of Visual Studio for Mac for .NET development


๐Ÿ“ˆ 35.79 Punkte

๐Ÿ“Œ Visual Studio Remote Office Hours - .NET Web API tooling in Visual Studio


๐Ÿ“ˆ 35.79 Punkte

๐Ÿ“Œ Visual Studio Toolbox Live - .NET Machine Learning in Visual Studio


๐Ÿ“ˆ 35.79 Punkte

๐Ÿ“Œ Visual Studio for Mac .NET productivity [3 of 4] | Intro to Visual Studio for Mac


๐Ÿ“ˆ 35.79 Punkte

๐Ÿ“Œ Introducing Visual Studio Codespaces: cloud-hosted development for wherever youโ€™re working


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Microsoft Renames Visual Studio Online to โ€œCodespacesโ€


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Umbenannt: Visual Studio Online wird zu Codespaces - und gรผnstiger


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Entwickeln im Cloud-Raum: Microsoft Visual Studio Codespaces


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Entwickeln im Cloud-Raum: Microsoft Visual Studio Codespaces


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Exploring Visual Studio Codespaces | BDL119


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Remote development with Visual Studio Codespaces | BOD109


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Zugunsten von GitHub: Microsoft beendet Visual Studio Codespaces


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Microsoft schlieรŸt Visual Studio Codespaces und verweist Entwickler auf GitHub


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Microsoft verabschiedet sich Visual Studio Codespaces


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Microsoft verabschiedet sich von Visual Studio Codespaces


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Visual Studio Remote Office Hours - How user research led to Codespaces


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ GitHub Codespaces | Visual Studio Toolbox


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Visual Studio Code: Remote dev with Containers & Codespaces


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ IDE auf Basis der Visual Studio Codespaces


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Visual Studio Code: Remote dev with Containers & Codespaces | Tabs vs Spaces


๐Ÿ“ˆ 34.81 Punkte

๐Ÿ“Œ Visual Studio Toolbox Live - Using Docker Containers in Visual Studio


๐Ÿ“ˆ 34.59 Punkte

๐Ÿ“Œ Build Visual Studio extensions using Visual Studio extensions


๐Ÿ“ˆ 34.59 Punkte











matomo