All Projects → LorandBiro → OctoPack.Precompile

LorandBiro / OctoPack.Precompile

Licence: MIT license
A NuGet package that adds an ASP.NET precompile step to the build just before OctoPack is called.

Programming Languages

C#
18002 projects
HTML
75241 projects

Projects that are alternatives of or similar to OctoPack.Precompile

EmbeddedResourceVirtualPathProvider
A custom VirtualPathProvider for IIS - load views and assets from Embedded Resources in referenced assemblies
Stars: ✭ 62 (+342.86%)
Mutual labels:  asp-net
EmlakProjesi
Emlak ilanları yayınlama ve yönetme sistemi
Stars: ✭ 12 (-14.29%)
Mutual labels:  asp-net
Cake-Shop
A sample Cake Shop Website built with ASP.NET Core (Multi-Page Application)
Stars: ✭ 44 (+214.29%)
Mutual labels:  asp-net
csharp
📚 Recursos para aprender C#
Stars: ✭ 37 (+164.29%)
Mutual labels:  asp-net
GPONMonitor
GPON Monitoring tool for Dasan Networks GPON OLTs
Stars: ✭ 26 (+85.71%)
Mutual labels:  asp-net
SimpleSocial
A simple social network web application using ASP.NET Core 3.1
Stars: ✭ 16 (+14.29%)
Mutual labels:  asp-net
squidex-samples
Samples for Squidex
Stars: ✭ 47 (+235.71%)
Mutual labels:  asp-net
X.Web.Sitemap
Simple sitemap generator for .NET
Stars: ✭ 66 (+371.43%)
Mutual labels:  asp-net
I18N
I18N Library for .NET, and Delphi
Stars: ✭ 48 (+242.86%)
Mutual labels:  asp-net
AspNetCore-Dynamic-Permission
Dynamic Permission Samples in ASP.NET Core and ASP.NET MVC 5.
Stars: ✭ 19 (+35.71%)
Mutual labels:  asp-net
ngGitHouse
Using Angular 11 inside ASP.NET MVC 5 with Angular CLI using Visual Studio 2017/ 2019
Stars: ✭ 25 (+78.57%)
Mutual labels:  asp-net
TraceHub
Centralized and distributed logging for Web applications and services, extending System.Diagnostics and Essential.Diagnostics, providing structured tracing and logging withou needing to change 1 line of your application codes
Stars: ✭ 22 (+57.14%)
Mutual labels:  asp-net
NClient
💫 NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Stars: ✭ 25 (+78.57%)
Mutual labels:  asp-net
adminlte-aspnetcore2-version
Asp.Net Example version of famous and beautiful AdminLTE control panel themes and template.
Stars: ✭ 64 (+357.14%)
Mutual labels:  asp-net
Awesome-Nuget-Packages
📦 A collection of awesome and top .NET packages sorted by most popular needs.
Stars: ✭ 87 (+521.43%)
Mutual labels:  asp-net
Uintra
A flexible and lightweight Umbraco based framework, for making an Intranet, Extranet or social platform based on known conventions.
Stars: ✭ 43 (+207.14%)
Mutual labels:  asp-net
SmartHotel360-Registration
SmartHotel360 - Registration (AKS with Windows Containers)
Stars: ✭ 28 (+100%)
Mutual labels:  asp-net
Asp-net-Core-Project-with-Admin-Template-Setup
AdminLTE Template Setup with Asp.net Core MVC 2.1 Project
Stars: ✭ 50 (+257.14%)
Mutual labels:  asp-net
Clinic-Management-System-ASP.NET
👨‍⚕️ A fully featured Clinic Management System based on three tier architecture made using ASP.NET, C# with a well documented README.md file.
Stars: ✭ 82 (+485.71%)
Mutual labels:  asp-net
SQRL-For-Dot-Net-Standard
SQRL for the .Net Standard runtimes. Secure Quick Reliable Login is a highly secure user privacy based authentication system that removes the need for users to have more than one password for a global identity https://www.grc.com/sqrl/sqrl.htm for more information of the protocal.
Stars: ✭ 26 (+85.71%)
Mutual labels:  asp-net

OctoPack Precompile

This NuGet package adds an ASP.NET precompile step to the build just before (and only if) OctoPack is called. All the files - which would be packaged by OctoPack - will be copied into an intermediate folder. The ASP.NET compiler will be executed on this intermediate folder creating the precompiled website to be packaged. If there's no nuspec file in the project the build step will generate one to tell OctoPack which files should be packaged. If you have a nuspec file you need to manually change it to include the precompiled website.

I created this to enable ASP.NET precompile in a simple TeamCity-Octopus pipeline. I didn't want to put publish profiles or any complex MSBuild 'magic' into the repository just to enable a feature that should be a simple checkbox, so I created this NuGet package to hide the complexity.

I tested it only with TeamCity Visual Studio build runner (VS2015) with Octopus plugin, but I'm sure there are some more complex scenarios where this simple build step is not enough.

How to use

  1. Install the OctoPack.Precompile NuGet package into the project you want to precompile on packaging.
  2. If you don't have a nuspec file in your project you're done. Otherwise modify it to include the files in obj\Release\Precompiled. Here's a minimal example:
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
  <metadata>
    <id>YourProject</id>
    <authors>YourProject</authors>
    <description>YourProject</description>
    <version>1.0.0</version>
  </metadata>
  <files>
    <file src="obj\Release\Precompiled\**\*.*" target="" />
  </files>
</package>

Visit http://docs.octopusdeploy.com/display/OD/Using+OctoPack or http://docs.nuget.org/create/nuspec-reference for more information.

That's it. Next time TeamCity or another build tool invokes OctoPack, precompilation will kick in and your deploy package will contain a precompiled website.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].