-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from autofac/feature/net6-build
Update build for .NET 6
- Loading branch information
Showing
46 changed files
with
2,237 additions
and
2,358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Ignore revisions in git blame - set your git config to use the file by convention: | ||
# git config --global blame.ignoreRevsFile .git-blame-ignore-revs | ||
# | ||
# Optional additional git config: | ||
# Mark any lines that have had a commit skipped using --ignore-rev with a `?` | ||
# git config --global blame.markIgnoredLines true | ||
# Mark any lines that were added in a skipped commit and can not be attributed with a `*` | ||
# git config --global blame.markUnblamableLines true | ||
|
||
# Convert to file-scoped namespaces. | ||
55e222d88b289465dec967979b7e481849306c21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
{ | ||
"cSpell.words": [ | ||
"autofac", | ||
"browsable", | ||
"cref", | ||
"inheritdoc", | ||
"langword", | ||
"paramref", | ||
"resx", | ||
"typeparam", | ||
"typeparamref", | ||
"xunit" | ||
], | ||
"dotnet-test-explorer.testProjectPath": "test/**/*Test.csproj", | ||
"explorer.fileNesting.patterns": { | ||
"*.resx": "$(capture).*.resx, $(capture).Designer.cs" | ||
}, | ||
"omnisharp.enableEditorConfigSupport": true, | ||
"omnisharp.enableRoslynAnalyzers": true, | ||
"cSpell.words": [ | ||
"Xunit" | ||
] | ||
"omnisharp.enableRoslynAnalyzers": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<clear/> | ||
<add key="Autofac MyGet" value="https://www.myget.org/F/autofac/api/v2" /> | ||
<add key="NuGet v3" value="https://api.nuget.org/v3/index.json" /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
<disabledPackageSources> | ||
<add key="Microsoft and .NET" value="true" /> | ||
<add key="Autofac MyGet" value="true" /> | ||
</disabledPackageSources> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
Autofac.Mef | ||
=========== | ||
# Autofac.Mef | ||
|
||
Managed Extensibility Framework (MEF) integration for Autofac IoC | ||
Managed Extensibility Framework (MEF) integration for [Autofac](https://autofac.org). | ||
|
||
[![Build status](https://ci.appveyor.com/api/projects/status/404h0j4gj3qyn09a?svg=true)](https://ci.appveyor.com/project/Autofac/autofac-bwvcu) [![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/autofac/Autofac.Mef) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/404h0j4gj3qyn09a?svg=true)](https://ci.appveyor.com/project/Autofac/autofac-bwvcu) | ||
|
||
Please file issues and pull requests for this package [in this repository](https://github.com/autofac/Autofac.Mef/issues) rather than in the Autofac core repo. | ||
|
||
- [Documentation](https://autofac.readthedocs.io/en/latest/integration/mef.html) | ||
- [NuGet](https://www.nuget.org/packages/Autofac.Mef) | ||
- [Contributing](https://autofac.readthedocs.io/en/latest/contributors.html) | ||
- [Open in Visual Studio Code](https://open.vscode.dev/autofac/Autofac.Mef) | ||
|
||
## Quick Start | ||
|
||
The Autofac/MEF integration allows MEF catalogs to be registered with the `ContainerBuilder` using the `RegisterComposablePartCatalog()` extension method. If you register a component using MEF and want to provide Autofac components into that MEF component, use the `Exported()` extension. | ||
|
||
```c# | ||
var builder = new ContainerBuilder(); | ||
var catalog = new DirectoryCatalog(@"C:\MyExtensions"); | ||
builder.RegisterComposablePartCatalog(catalog); | ||
builder.RegisterType<Component>() | ||
.Exported(x => x.As<IService>().WithMetadata("SomeData", 42)); | ||
``` | ||
|
||
Check out the [Autofac MEF integration documentation](https://autofac.readthedocs.io/en/latest/integration/mef.html) for more information. | ||
|
||
## Get Help | ||
|
||
**Need help with Autofac?** We have [a documentation site](https://autofac.readthedocs.io/) as well as [API documentation](https://autofac.org/apidoc/). We're ready to answer your questions on [Stack Overflow](https://stackoverflow.com/questions/tagged/autofac) or check out the [discussion forum](https://groups.google.com/forum/#forum/autofac). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RuleSet Name="Autofac Analyzer Rules" Description="Analyzer rules for Autofac assemblies." ToolsVersion="16.0"> | ||
<IncludeAll Action="Warning" /> | ||
<Rules AnalyzerId="Microsoft.Usage" RuleNamespace="Microsoft.Usage"> | ||
<!-- Implement standard exception constructors - not all of the exception constructors (e.g., parameterless) are desired in our system. --> | ||
<Rule Id="CA1032" Action="None" /> | ||
<!-- Remove the underscores from member name - unit test scenarios may use underscores. --> | ||
<Rule Id="CA1707" Action="None" /> | ||
<!-- Change names to avoid reserved word overlaps (e.g., Delegate, GetType, etc.) - too many of these in the public API, we'd break if we fixed it. --> | ||
<Rule Id="CA1716" Action="None" /> | ||
<!-- Change Dispose() to call GC.SuppressFinalize - in tests we don't really care and it can impact readability. --> | ||
<Rule Id="CA1816" Action="None" /> | ||
<!-- Mark members static - test methods may not access member data but also can't be static. --> | ||
<Rule Id="CA1822" Action="None" /> | ||
<!-- Do not directly await a task - this is for libraries rather than test code. --> | ||
<Rule Id="CA2007" Action="None" /> | ||
<!-- Implement serialization constructors - false positive when building .NET Core. --> | ||
<Rule Id="CA2229" Action="None" /> | ||
<!-- Use Uri instead of string parameters - strings are easier for testing. --> | ||
<Rule Id="CA2234" Action="None" /> | ||
<!-- Mark ISerializable types with SerializableAttribute - false positive when building .NET Core. --> | ||
<Rule Id="CA2237" Action="None" /> | ||
</Rules> | ||
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers"> | ||
<!-- Prefix local calls with this --> | ||
<Rule Id="SA1101" Action="None" /> | ||
<!-- Use built-in type alias --> | ||
<Rule Id="SA1121" Action="None" /> | ||
<!-- Use String.Empty instead of "" --> | ||
<Rule Id="SA1122" Action="None" /> | ||
<!-- Using statements must be inside a namespace --> | ||
<Rule Id="SA1200" Action="None" /> | ||
<!-- Enforce order of class members by member type --> | ||
<Rule Id="SA1201" Action="None" /> | ||
<!-- Enforce order of class members by member visibility --> | ||
<Rule Id="SA1202" Action="None" /> | ||
<!-- Enforce order of constantand static members --> | ||
<Rule Id="SA1203" Action="None" /> | ||
<!-- Enforce order of static vs. non-static members --> | ||
<Rule Id="SA1204" Action="None" /> | ||
<!-- Enforce order of readonly vs. non-readonly members --> | ||
<Rule Id="SA1214" Action="None" /> | ||
<!-- Fields can't start with underscore --> | ||
<Rule Id="SA1309" Action="None" /> | ||
<!-- Suppressions must have a justification --> | ||
<Rule Id="SA1404" Action="None" /> | ||
<!-- Elements should be documented --> | ||
<Rule Id="SA1600" Action="None" /> | ||
<!-- Enuemration items should be documented --> | ||
<Rule Id="SA1602" Action="None" /> | ||
<!-- Parameter documentation must be in the right order --> | ||
<Rule Id="SA1612" Action="None" /> | ||
<!-- Return value must be documented --> | ||
<Rule Id="SA1615" Action="None" /> | ||
<!-- Generic type parameters must be documented --> | ||
<Rule Id="SA1618" Action="None" /> | ||
<!-- Don't copy/paste documentation --> | ||
<Rule Id="SA1625" Action="None" /> | ||
<!-- Exception documentation must not be empty --> | ||
<Rule Id="SA1627" Action="None" /> | ||
<!-- Enable XML documentation output--> | ||
<Rule Id="SA1652" Action="None" /> | ||
<!-- Private member is unused - tests for reflection require members that may not get used. --> | ||
<Rule Id="IDE0051" Action="None" /> | ||
<!-- Private member assigned value never read - tests for reflection require values that may not get used. --> | ||
<Rule Id="IDE0052" Action="None" /> | ||
<!-- Remove unused parameter - tests for reflection require parameters that may not get used. --> | ||
<Rule Id="IDE0060" Action="None" /> | ||
</Rules> | ||
</RuleSet> |
Oops, something went wrong.