Using System.web.optimization; Visual Studio For Mac
At this morning’s Connect(); 2016 keynote, Nat Friedman and James Montemagno introduced Visual Studio for Mac, the newest member of the Visual Studio family.Visual Studio for Mac is a developer environment optimized for building mobile and cloud apps with Xamarin and .NET. It is a one-stop shop for .NET development on the Mac, including Android, iOS, and .NET Core technologies. Sporting a native user interface, Visual Studio for Mac integrates all of the tools you need to create, debug, test, and publish mobile and server applications without compromise, including state of the art APIs and UI designers for Android and iOS.
Using ES6 with React version v0.13 introduces a new way to create a component by defining a class component that is a new 'Class' keyword and module syntax. Use the new modern ES6 pattern to create 'HelloWorld' component likes below.
Both C# and F# are supported out of the box and our project templates provide developers with a skeleton that embodies the best practices to share code across mobile front ends and your backend. Our new Connected Application template gives you both your Android and iOS front ends, as well as its complementary .NET Core-powered backend.
Once you’re up and running, you’ll find the same Roslyn-powered compiler, IntelliSense code completion, and refactoring experience you would expect from a Visual Studio IDE. And, since Visual Studio for Mac uses the same MSBuild solution and project format as Visual Studio, developers working on Mac and Windows can share projects across Mac and Windows transparently.
With multi-process debugging, you can use Visual Studio for Mac to debug both your front end application as well as your backend simultaneously.
Visual Studio for Mac provides an amazing experience for creating mobile apps, from integrated designers to the code editing experience to the packaging and publishing tools. It is complemented by:
- The full power of the beloved-by-millions C# 7 programming language
- Complete .NET APIs for Android, iOS, tvOS, watchOS, and macOS
- The Xamarin.Forms API abstraction to maximize code sharing
- Access to thousands of .NET libraries on NuGet.org to accelerate your mobile development
- Highly optimized native code backed by the LLVM optimizing compiler
But we know apps don’t stop at the client, which is why I am so excited about what Visual Studio for Mac brings to backend development, as well.
Check out the release notes for a complete list of what’s included in this product.
It is rare these days for mobile applications to run in isolation; most of them have a backend that does the heavy lifting and connects users.
You can use .NET Core to build your own backend services and deploy these to your Windows or Linux servers on Visual Studio for Mac, while the project templates will get you up and running with an end-to-end configuration.
Visual Studio For Mac Tutorial
Additionally developers can easily integrate Azure mobile services into their application for things like push notifications, data storage, and user accounts and authentication with Azure App Services. This is available in the new “Connected Services” project node.

Whether you are rolling out a custom backend with ASP.NET Core, or consuming pre-packaged Azure services, Visual Studio for Mac will be there for you.
Check out the release notes for a complete list of what’s included in this product.
Today we released the first preview of Visual Studio for Mac, a member of the Visual Studio family, and the story is just beginning. In the coming months we will be working with the Visual Studio and Visual Studio Code teams to bring more features that you love to the Mac, from advanced Web editing capabilities to support for more programming languages via the Server Language Protocol.
Visit the Visual Studio for Mac page and take it for a spin. We look forward to hearing your feedback!
| Miguel de Icaza, Distinguished Engineer, Mobile Developer Tools @migueldeicaza Miguel is a Distinguished Engineer at Microsoft, focused on the mobile platform and creating delightful developer tools. With Nat Friedman, he co-founded both Xamarin in 2011 and Ximian in 1999. Before that, Miguel co-founded the GNOME project in 1997 and has directed the Mono project since its creation in 2001, including multiple Mono releases at Novell. Miguel has received the Free Software Foundation 1999 Free Software Award, the MIT Technology Review Innovator of the Year Award in 1999, and was named one of Time Magazine’s 100 innovators for the new century in September 2000. |
My angular application is backed by ASP.NET webapi, where I'm serving up an index.html and angular handles everything else from there. I'd like to use bundling, but I can't see how I'd do this. Do I have to use razor (or webforms) just to reference bundles? Or is there an option to give the bundle output a fixed name that I can reference in my src/hrefs?
To clarify, I'm not using MVC or Webforms to serve html. You just get redirected to index.html , and the routing is all client-side. My bundle configuration is done using WebActivator.PostApplicationStartMethod.
Visual Studio For Mac
Visual Studio For Mac Download
George RGeorge R1 Answer
First, to only answer the question, you can just use a plain link in your html file
=> that will include your javascript bundle into the page
The problem you will have with this approach is that if you modify a *.js file contained in the bundle, the modification will not be visible in the bundle.This is all about 'bundle cache busting', a nice feature of ASP.NET but only usable from a razor template ...Obviously, you cal also restart the pool (but this is quite slow and hard to automate) :)
To workaround the problem, you can define your own ASP.NET MVC Controller with the following
and you use that like :
=> now, every time you make a change, the bundle will be regenerated.
Be aware to use this only during development because you remove nearly all benefits of bundles (i.e in particular client and server caching)