Skip to content

Commit

Permalink
prepare 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-xu committed Oct 19, 2017
1 parent e0bda7f commit 17b4659
Show file tree
Hide file tree
Showing 400 changed files with 649 additions and 202,326 deletions.
16 changes: 3 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
_ReSharper.*
.vs
*.user
bin
Bin
obj
build
dist
*.suo
*resharper*
*.user
*.cache
*.dotCover
lib/Ninject/*.zip
lib/Ninject/*/**
lib/Ninject.Web.Common/*.zip
lib/Ninject.Web.Common/*/**
packages
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased] - 2017-10-19

### Removed
- Dropped support for ASP.NET MVC 1,2,3,4.
15 changes: 11 additions & 4 deletions mvc3/Ninject.Web.Mvc.sln → Ninject.Web.Mvc.sln
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2002
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{77BE2A9F-F61F-45D4-A5C5-1DF0DA05EA42}"
ProjectSection(SolutionItems) = preProject
README.markdown = README.markdown
appveyor.yml = appveyor.yml
CHANGELOG.md = CHANGELOG.md
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ninject.Web.Mvc", "src\Ninject.Web.Mvc\Ninject.Web.Mvc.csproj", "{82222179-0EB8-4C43-AD48-6EA388349C64}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ninject.Web.Mvc", "src\Ninject.Web.Mvc\Ninject.Web.Mvc.csproj", "{82222179-0EB8-4C43-AD48-6EA388349C64}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleApplication", "src\SampleApplication\SampleApplication.csproj", "{E511B69F-0BB7-4BD3-A69A-5B995173D666}"
EndProject
Expand All @@ -33,4 +37,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5C09CB2C-A1C3-4E87-B489-5D29E640DC86}
EndGlobalSection
EndGlobal
26 changes: 0 additions & 26 deletions README.markdown

This file was deleted.

34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Ninject.Web.Mvc

[![Build status](https://ci.appveyor.com/api/projects/status/7af63sr9x1mwuhd8?svg=true)](https://ci.appveyor.com/project/Ninject/ninject-web-mvc)
[![NuGet Version](http://img.shields.io/nuget/v/Ninject.Mvc5.svg?style=flat)](https://www.nuget.org/packages/Ninject.Mvc5/)
[![NuGet Downloads](http://img.shields.io/nuget/dt/Ninject.Mvc5.svg?style=flat)](https://www.nuget.org/packages/Ninject.Mvc5/)

This extension allows integration between the [Ninject](http://github.com/ninject/ninject/)
and [ASP.NET MVC](http://www.asp.net/mvc/) projects. To use it, just make your HttpApplication
(typically in Global.asax.cs) extend NinjectHttpApplication:

```C#
public class YourWebApplication : NinjectHttpApplication
{
public override void OnApplicationStarted()
{
// This is only needed in MVC1
RegisterAllControllersIn("Some.Assembly.Name");
}

public override IKernel CreateKernel()
{
return new StandardKernel(new SomeModule(), new SomeOtherModule(), ...);

// OR, to automatically load modules:
var kernel = new StandardKernel();
kernel.AutoLoadModules("~/bin");
return kernel;
}
}
```

Once you do this, your controllers will be activated via Ninject, meaning you can expose dependencies on
their constructors (or properties, or methods) to request injections.
40 changes: 40 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
configuration: Release

image: Visual Studio 2017

init:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
}
else
{
Update-AppveyorBuild -Version "3.3.0-ci.$($env:APPVEYOR_BUILD_NUMBER)+sha.$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
}
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'

cache:
- '%LocalAppData%\NuGet\v3-cache -> **\*.csproj'

before_build:
- dotnet restore --verbosity quiet

build:
parallel: true
verbosity: minimal

artifacts:
- path: '**\*.nupkg'

deploy:
provider: NuGet
api_key:
secure: Sn05A/FiUAlID5v31uaf5EZuYCSo4frLONtrCY+cwY265dU2JUZsl2+sjVeLQyz/
on:
appveyor_repo_tag: true
Binary file removed lib/Mvc1/System.Web.Mvc.dll
Binary file not shown.
Binary file removed lib/Mvc2/System.Web.Mvc.dll
Binary file not shown.
Loading

0 comments on commit 17b4659

Please sign in to comment.