Skip to content

Commit

Permalink
Move Fody package ref to PrivateAssets None
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jan 12, 2018
1 parent 2527930 commit 5927d3e
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 23 deletions.
1 change: 1 addition & 0 deletions AssemblyToProcess/AssemblyToProcess.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net452;netcoreapp2.0</TargetFrameworks>
<DisableFody>true</DisableFody>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions AssemblyWithExcludes/AssemblyWithExcludes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net452;netcoreapp2.0</TargetFrameworks>
<DisableFody>true</DisableFody>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions AssemblyWithIncludes/AssemblyWithIncludes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net452;netcoreapp2.0</TargetFrameworks>
<DisableFody>true</DisableFody>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<PackageVersion>1.20.1</PackageVersion>
<PackageVersion>1.20.2</PackageVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down
3 changes: 1 addition & 2 deletions Tests/ConfigReaderTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Xml.Linq;
using Fody;
using Xunit;

public class ConfigReaderTests
{

[Fact]
public void ExcludeNamespacesNode()
{
Expand Down Expand Up @@ -122,5 +122,4 @@ public void IncludeNamespacesCombined()
Assert.Equal("Foo", moduleWeaver.IncludeNamespaces[0]);
Assert.Equal("Bar", moduleWeaver.IncludeNamespaces[1]);
}

}
16 changes: 8 additions & 8 deletions Tests/NewPropertyIntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ public class NewPropertyIntegrationTests

const BindingFlags PropertyBindingFlags = BindingFlags.Public | BindingFlags.Instance;

readonly Type derivedType;
readonly Type genericDerivedType;
Type derivedType;
Type genericDerivedType;

readonly PropertyInfo baseProperty;
readonly PropertyInfo baseNewProperty;
PropertyInfo baseProperty;
PropertyInfo baseNewProperty;

readonly PropertyInfo derivedSameBackingProperty;
readonly PropertyInfo derivedNewProperty;
PropertyInfo derivedSameBackingProperty;
PropertyInfo derivedNewProperty;

readonly PropertyInfo genericDerivedSameBackingProperty;
readonly PropertyInfo genericDerivedNewProperty;
PropertyInfo genericDerivedSameBackingProperty;
PropertyInfo genericDerivedNewProperty;

static Assembly assembly;

Expand Down
3 changes: 2 additions & 1 deletion Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
<PropertyGroup>
<TargetFrameworks>net46;netcoreapp2.0</TargetFrameworks>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<DisableFody>true</DisableFody>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<PackageReference Include="FodyHelpers" Version="2.3.17" />
<PackageReference Include="FodyHelpers" Version="2.3.18" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<ProjectReference Include="..\AssemblyWithExcludes\AssemblyWithExcludes.csproj" />
Expand Down
1 change: 1 addition & 0 deletions Virtuosity.Fody/ConfigReader.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Fody;

public partial class ModuleWeaver
{
Expand Down
2 changes: 1 addition & 1 deletion Virtuosity.Fody/Virtuosity.Fody.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<PackageReference Include="FodyHelpers" Version="2.3.17" />
<PackageReference Include="FodyHelpers" Version="2.3.18" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions Virtuosity.Fody/WeavingException.cs

This file was deleted.

4 changes: 2 additions & 2 deletions Virtuosity/Virtuosity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageTags>Virtual, ILWeaving, Runtime Proxy, Mocking, Fody, Cecil</PackageTags>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Fody" Version="2.3.17" />
<PackageReference Include="FodyPackaging" Version="2.3.17" PrivateAssets="All" />
<PackageReference Include="Fody" Version="2.3.18" PrivateAssets="None" />
<PackageReference Include="FodyPackaging" Version="2.3.18" PrivateAssets="All" />
</ItemGroup>
</Project>

0 comments on commit 5927d3e

Please sign in to comment.