Skip to content
Browse files

Removing lib35 stuff from Nuget packages and opting for manual zip re…

…leases until Nuget supports targeted dependencies. Output goes to build\Cassette.Fx35-{version}
  • Loading branch information...
1 parent cf48bdf commit 19007978c09ca5639acfd49e0504af97f8b86236 @kamranayub kamranayub committed Mar 6, 2012
View
18 build.xml
@@ -71,6 +71,24 @@
If it is an issue for 3.5-based projects, can maybe figure out a clean way to package tools for 3.5 and 4.0.
See: src\Cassette.MSBuild\Cassette.MSBuild.nuspec -->
<Exec Command="nuget pack src\Cassette.MSBuild\Cassette.MSBuild.nuspec -Version $(Version) -Tool -OutputDirectory $(OutputDir) -NoPackageAnalysis"/>
+
+ <!-- TODO: Until we can multi-target within Nuget easily, we are packaging Fx35 as a zip file for release -->
+ <ItemGroup>
+ <Binary Include="build\bin\lib35\Cassette.dll" />
+ <Binary Include="build\bin\lib35\Cassette.Views.dll" />
+ <Binary Include="build\bin\lib35\Cassette.Web.dll" />
+ <Binary Include="build\bin\lib35\Iesi.Collections.dll" />
+ <Binary Include="build\bin\lib35\Pandora.dll" />
+ <Content Include="src\Cassette.Web\CassetteConfiguration.cs.pp" />
+ <Content Include="src\Cassette.Web\web.config.transform" />
+ <Content Include="src\Cassette.Views\web.config.mvc2.transform" />
+ <Root Include="license.txt" />
+ <Root Include="readme_fx35.md" />
+ </ItemGroup>
+
+ <Copy SourceFiles="%(Binary.Identity)" DestinationFolder="build\Cassette.Fx35-$(Version)\lib35" />
+ <Copy SourceFiles="%(Content.Identity)" DestinationFolder="build\Cassette.Fx35-$(Version)\content" />
+ <Copy SourceFiles="%(Root.Identity)" DestinationFolder="build\Cassette.Fx35-$(Version)" />
</Target>
<Target Name="NugetPush" DependsOnTargets="NugetPack">
View
30 readme_fx35.md
@@ -0,0 +1,30 @@
+.NET 3.5
+========
+
+## Installation ##
+
+1. Copy the DLLs to your site's `bin` directory.
+2. Copy the `CassetteConfiguration.cs.pp` file to your project and remove the `pp` extension. Change your namespace.
+3. Add the HTTP module and handlers from `web.config.fx35.transform` if they don't already exist to your root `web.config`
+
+For **MVC2**, modify your `~/Views/web.config` and add the `Cassette.Views` namespace (from `web.config.mvc2.transform`).
+
+## Nuget ##
+
+This is a temporary installation procedure for .NET 3.5 users until Nuget supports targeted dependencies. Want it faster? Vote for it!
+
+http://nuget.codeplex.com/workitem/697
+
+## Troubleshooting ##
+
+* Cassette is returning HTTP 404 for URLs and when browsing to `_cassette`.
+
+Make sure you have a reference to `System.Web.Routing` and your `web.config` has the `UrlRoutingModule` and handler specified. This is configured already for MVC2 applications but may not be for Web Forms applications. For reference, see: http://msdn.microsoft.com/en-us/magazine/dd347546.aspx#id0070014
+
+* It still doesn't seem to find my bundles.
+
+Make sure `runAllManagedModulesForAllRequests` is set to `true` for your `web.config` `system.webServer/httpModules` element.
+
+* Cassette is not processing my SASS files.
+
+SASS is only supported in .NET 4.
View
3 src/Cassette.Views/Cassette.Views.nutrans
@@ -9,8 +9,7 @@
</metadata>
<files xdt:Transform="Insert">
- <file src="..\..\build\bin\lib40\Cassette.Views.dll" target="lib\net40" />
- <file src="..\..\build\bin\lib35\Cassette.Views.dll" target="lib\net35" />
+ <file src="..\..\build\bin\lib40\Cassette.Views.dll" target="lib\net40" />
<file src="Web.config.transform" target="content\Views"/>
</files>
</package>
View
3 src/Cassette.Views/Cassette.Views.symbols.nutrans
@@ -1,8 +1,7 @@
<?xml version="1.0"?>
<package inherits="Cassette.Views.nutrans" xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<files>
- <file src="..\..\build\bin\lib40\Cassette.Views.pdb" target="lib\net40" xdt:Transform="Insert" />
- <file src="..\..\build\bin\lib35\Cassette.Views.pdb" target="lib\net35" xdt:Transform="Insert" />
+ <file src="..\..\build\bin\lib40\Cassette.Views.pdb" target="lib\net40" xdt:Transform="Insert" />
<file src="**\*.cs" target="src" xdt:Transform="Insert" />
</files>
</package>
View
11 src/Cassette.Views/Web.config.mvc2.transform
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- This goes in ~/Views/ for MVC2 web applications -->
+<configuration>
+ <system.web>
+ <pages>
+ <namespaces>
+ <add namespace="Cassette.Views" />
+ </namespaces>
+ </pages>
+ </system.web>
+</configuration>
View
3 src/Cassette.Web/Cassette.Web.nutrans
@@ -10,8 +10,7 @@
</metadata>
<files xdt:Transform="Insert">
- <file src="..\..\build\bin\lib40\Cassette.Web.dll" target="lib\net40" />
- <file src="..\..\build\bin\lib35\Cassette.Web.dll" target="lib\net35" />
+ <file src="..\..\build\bin\lib40\Cassette.Web.dll" target="lib\net40" />
<file src="CassetteConfiguration.cs.pp" target="content"/>
<file src="web.config.transform" target="content" />
</files>
View
3 src/Cassette.Web/Cassette.Web.symbols.nutrans
@@ -1,8 +1,7 @@
<?xml version="1.0"?>
<package inherits="Cassette.Web.nutrans" xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<files>
- <file xdt:Transform="Insert" src="..\..\build\bin\lib40\Cassette.Web.pdb" target="lib\net40" />
- <file xdt:Transform="Insert" src="..\..\build\bin\lib35\Cassette.Web.pdb" target="lib\net35" />
+ <file xdt:Transform="Insert" src="..\..\build\bin\lib40\Cassette.Web.pdb" target="lib\net40" />
<file xdt:Transform="Insert" src="**\*.cs" target="src" />
</files>
</package>
View
23 src/Cassette/Cassette.nutrans
@@ -8,34 +8,17 @@
<dependency id="Jurassic" version="2.1" />
<dependency id="Newtonsoft.Json" version="4.0" />
<dependency id="CommonServiceLocator" version="1.0"/>
+ <dependency id="IronRuby" version="1.1.3" />
+ <dependency id="SassAndCoffee.Core" version="2.0.2" />
+ <dependency id="SassAndCoffee.Ruby" version="2.0.2" />
</dependencies>
<references xdt:Transform="Insert">
<reference file="Pandora.dll"/>
<reference file="Cassette.dll"/>
- <reference file="Iesi.Collections.dll" />
- <reference file="IronRuby.dll" />
- <reference file="IronRuby.Libraries.dll" />
- <reference file="IronRuby.Libraries.Yaml.dll" />
- <reference file="Microsoft.Dynamic.dll" />
- <reference file="Microsoft.Scripting.dll" />
- <reference file="Microsoft.Scripting.Metadata.dll" />
- <reference file="SassAndCoffee.Core.dll" />
- <reference file="SassAndCoffee.Ruby.dll" />
</references>
</metadata>
<files xdt:Transform="Insert">
<file src="..\..\build\bin\lib40\Cassette.dll" target="lib\net40-client" />
- <file src="..\..\build\bin\lib35\Cassette.dll" target="lib\net35-client" />
- <file src="..\..\build\bin\lib35\Iesi.Collections.dll" target="lib\net35-client" />
<file src="..\..\build\bin\lib40\Pandora.dll" target="lib\net40-client"/>
- <file src="..\..\build\bin\lib35\Pandora.dll" target="lib\net35-client"/>
- <file src="..\..\build\bin\lib40\IronRuby.dll" target="lib\net40-client"/>
- <file src="..\..\build\bin\lib40\IronRuby.Libraries.dll" target="lib\net40-client"/>
- <file src="..\..\build\bin\lib40\IronRuby.Libraries.Yaml.dll" target="lib\net40-client"/>
- <file src="..\..\build\bin\lib40\Microsoft.Dynamic.dll" target="lib\net40-client"/>
- <file src="..\..\build\bin\lib40\Microsoft.Scripting.dll" target="lib\net40-client"/>
- <file src="..\..\build\bin\lib40\Microsoft.Scripting.Metadata.dll" target="lib\net40-client"/>
- <file src="..\..\build\bin\lib40\SassAndCoffee.Core.dll" target="lib\net40-client"/>
- <file src="..\..\build\bin\lib40\SassAndCoffee.Ruby.dll" target="lib\net40-client"/>
</files>
</package>
View
1 src/Cassette/Cassette.symbols.nutrans
@@ -2,7 +2,6 @@
<package inherits="Cassette.nutrans" xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<files>
<file xdt:Transform="Insert" src="..\..\build\bin\lib40\Cassette.pdb" target="lib\net40-client" />
- <file xdt:Transform="Insert" src="..\..\build\bin\lib35\Cassette.pdb" target="lib\net35-client" />
<file xdt:Transform="Insert" src="**\*.cs" target="src" />
</files>
</package>

0 comments on commit 1900797

Please sign in to comment.
Something went wrong with that request. Please try again.