The Free Software Media System - Server Backend & API
Revert "Update Fody on Model Portable and tested on 2013"
Luke Pulverentia8dcc9c648e9
diff --git a/MediaBrowser.Model.Portable/Fody.targets b/MediaBrowser.Model.Portable/Fody.targetsnew file mode 100644index 0000000000..a668a51fc0--- /dev/null+++ b/MediaBrowser.Model.Portable/Fody.targets@@ -0,0 +1,89 @@+<?xml version="1.0" encoding="utf-8"?>+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">+ <Choose>+ <When Condition="$(NCrunchOriginalSolutionDir) != '' And $(NCrunchOriginalSolutionDir) != '*Undefined*'">+ <PropertyGroup>+ <FodySolutionDir>$(NCrunchOriginalSolutionDir)</FodySolutionDir>+ </PropertyGroup>+ </When>+ <When Condition="$(SolutionDir) != '' And $(SolutionDir) != '*Undefined*'">+ <PropertyGroup>+ <FodySolutionDir>$(SolutionDir)</FodySolutionDir>+ </PropertyGroup>+ </When>+ <When Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">+ <PropertyGroup>+ <FodySolutionDir>$(MSBuildProjectDirectory)\..\</FodySolutionDir>+ </PropertyGroup>+ </When>+ </Choose>+ <Choose>+ <When Condition="$(KeyOriginatorFile) != '' And $(KeyOriginatorFile) != '*Undefined*'">+ <PropertyGroup>+ <FodyKeyFilePath>$(KeyOriginatorFile)</FodyKeyFilePath>+ </PropertyGroup>+ </When>+ <When Condition="$(AssemblyOriginatorKeyFile) != '' And $(AssemblyOriginatorKeyFile) != '*Undefined*'">+ <PropertyGroup>+ <FodyKeyFilePath>$(AssemblyOriginatorKeyFile)</FodyKeyFilePath>+ </PropertyGroup>+ </When>+ <Otherwise >+ <PropertyGroup>+ <FodyKeyFilePath></FodyKeyFilePath>+ </PropertyGroup>+ </Otherwise>+ </Choose>+ <PropertyGroup>+ <IntermediateDir>$(ProjectDir)$(IntermediateOutputPath)</IntermediateDir>+ <FodyMessageImportance Condition="$(FodyMessageImportance) == '' Or $(FodyMessageImportance) == '*Undefined*'">Low</FodyMessageImportance>+ <FodySignAssembly Condition="$(FodySignAssembly) == '' Or $(FodySignAssembly) == '*Undefined*'">$(SignAssembly)</FodySignAssembly>+ <FodyPath Condition="$(FodyPath) == '' Or $(FodyPath) == '*Undefined*'">$(MSBuildThisFileDirectory)</FodyPath>+ </PropertyGroup>+ <UsingTask+ TaskName="Fody.WeavingTask"+ AssemblyFile="$(FodyPath)\Fody.dll" />+ <Target+ AfterTargets="AfterCompile"+ Name="WinFodyTarget"+ Condition=" '$(OS)' == 'Windows_NT'">++ <Fody.WeavingTask+ AssemblyPath="@(IntermediateAssembly)"+ IntermediateDir="$(IntermediateDir)"+ KeyFilePath="$(FodyKeyFilePath)"+ MessageImportance="$(FodyMessageImportance)"+ ProjectDirectory="$(ProjectDir)"+ SolutionDir="$(FodySolutionDir)"+ References="@(ReferencePath)"+ SignAssembly="$(FodySignAssembly)"+ ReferenceCopyLocalPaths="@(ReferenceCopyLocalPaths)"+ DefineConstants="$(DefineConstants)"+ />+ </Target>++ <Target+ AfterTargets="AfterBuild"+ Name="NonWinFodyTarget"+ Condition=" '$(OS)' != 'Windows_NT'">+ <Fody.WeavingTask+ AssemblyPath="$(TargetPath)"+ IntermediateDir="$(IntermediateDir)"+ KeyFilePath="$(FodyKeyFilePath)"+ MessageImportance="$(FodyMessageImportance)"+ ProjectDirectory="$(ProjectDir)"+ SolutionDir="$(FodySolutionDir)"+ References="@(ReferencePath)"+ SignAssembly="$(FodySignAssembly)"+ ReferenceCopyLocalPaths="$(ReferenceCopyLocalPaths)"+ DefineConstants="$(DefineConstants)"+ />+ </Target>+++ <!--Support for ncrunch-->+ <ItemGroup>+ <None Include="$(FodyPath)\*.*" />+ </ItemGroup>++</Project>\ No newline at end of filediff --git a/MediaBrowser.Model.Portable/FodyWeavers.xml b/MediaBrowser.Model.Portable/FodyWeavers.xmlindex bb0f322ee9..7369928101 100644--- a/MediaBrowser.Model.Portable/FodyWeavers.xml+++ b/MediaBrowser.Model.Portable/FodyWeavers.xml@@ -1,4 +1,4 @@-<?xml version="1.0" encoding="utf-8"?>+<?xml version="1.0" encoding="utf-8"?><Weavers><PropertyChanged /></Weavers>\ No newline at end of filediff --git a/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj b/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csprojindex 02a4d015c8..cea13f86e9 100644--- a/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj+++ b/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj@@ -37,7 +37,6 @@<UseApplicationTrust>false</UseApplicationTrust><BootstrapperEnabled>true</BootstrapperEnabled><RestorePackages>true</RestorePackages>- <NuGetPackageImportStamp>07483ba6</NuGetPackageImportStamp></PropertyGroup><PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "><DebugSymbols>true</DebugSymbols>@@ -59,8 +58,15 @@<ItemGroup><!-- A reference to the entire .NET Framework is automatically included --><None Include="app.config" />+ <None Include="Fody.targets" /><None Include="packages.config" /></ItemGroup>+ <ItemGroup>+ <Reference Include="PropertyChanged">+ <HintPath>..\packages\PropertyChanged.Fody.1.41.0.0\Lib\portable-net4+sl4+wp7+win8+MonoAndroid16+MonoTouch40\PropertyChanged.dll</HintPath>+ <Private>False</Private>+ </Reference>+ </ItemGroup><ItemGroup><Compile Include="..\MediaBrowser.Model\Activity\ActivityLogEntry.cs"><Link>Activity\ActivityLogEntry.cs</Link>@@ -1243,24 +1249,12 @@<Install>false</Install></BootstrapperPackage></ItemGroup>- <ItemGroup>- <Reference Include="PropertyChanged">- <HintPath>..\packages\PropertyChanged.Fody.1.50.4\Lib\portable-net4+sl4+wp8+win8+wpa81+MonoAndroid16+MonoTouch40\PropertyChanged.dll</HintPath>- <Private>False</Private>- </Reference>- </ItemGroup><Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /><PropertyGroup><PostBuildEvent></PostBuildEvent></PropertyGroup>- <Import Project="..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets" Condition="Exists('..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets')" />- <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">- <PropertyGroup>- <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>- </PropertyGroup>- <Error Condition="!Exists('..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets'))" />- </Target>+ <Import Project="Fody.targets" /><!-- To modify your build process, add your task inside one of the targets below and uncomment it.Other similar extension points exist, see Microsoft.Common.targets.<Target Name="BeforeBuild">diff --git a/MediaBrowser.Model.Portable/packages.config b/MediaBrowser.Model.Portable/packages.configindex de5b54f9cc..1baa00e282 100644--- a/MediaBrowser.Model.Portable/packages.config+++ b/MediaBrowser.Model.Portable/packages.config@@ -1,5 +1,5 @@<?xml version="1.0" encoding="utf-8"?><packages>- <package id="Fody" version="1.29.2" targetFramework="portable-net45+win+wpa81+wp80" developmentDependency="true" />- <package id="PropertyChanged.Fody" version="1.50.4" targetFramework="portable-net45+win+wpa81+wp80" developmentDependency="true" />+ <package id="Fody" version="1.19.1.0" targetFramework="portable-win+net45+sl40+wp71" developmentDependency="true" />+ <package id="PropertyChanged.Fody" version="1.41.0.0" targetFramework="portable-net45+sl40+wp71+win" requireReinstallation="True" /></packages>\ No newline at end of filediff --git a/MediaBrowser.Model/Fody.targets b/MediaBrowser.Model/Fody.targetsnew file mode 100644index 0000000000..a668a51fc0--- /dev/null+++ b/MediaBrowser.Model/Fody.targets@@ -0,0 +1,89 @@+<?xml version="1.0" encoding="utf-8"?>+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">+ <Choose>+ <When Condition="$(NCrunchOriginalSolutionDir) != '' And $(NCrunchOriginalSolutionDir) != '*Undefined*'">+ <PropertyGroup>+ <FodySolutionDir>$(NCrunchOriginalSolutionDir)</FodySolutionDir>+ </PropertyGroup>+ </When>+ <When Condition="$(SolutionDir) != '' And $(SolutionDir) != '*Undefined*'">+ <PropertyGroup>+ <FodySolutionDir>$(SolutionDir)</FodySolutionDir>+ </PropertyGroup>+ </When>+ <When Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">+ <PropertyGroup>+ <FodySolutionDir>$(MSBuildProjectDirectory)\..\</FodySolutionDir>+ </PropertyGroup>+ </When>+ </Choose>+ <Choose>+ <When Condition="$(KeyOriginatorFile) != '' And $(KeyOriginatorFile) != '*Undefined*'">+ <PropertyGroup>+ <FodyKeyFilePath>$(KeyOriginatorFile)</FodyKeyFilePath>+ </PropertyGroup>+ </When>+ <When Condition="$(AssemblyOriginatorKeyFile) != '' And $(AssemblyOriginatorKeyFile) != '*Undefined*'">+ <PropertyGroup>+ <FodyKeyFilePath>$(AssemblyOriginatorKeyFile)</FodyKeyFilePath>+ </PropertyGroup>+ </When>+ <Otherwise >+ <PropertyGroup>+ <FodyKeyFilePath></FodyKeyFilePath>+ </PropertyGroup>+ </Otherwise>+ </Choose>+ <PropertyGroup>+ <IntermediateDir>$(ProjectDir)$(IntermediateOutputPath)</IntermediateDir>+ <FodyMessageImportance Condition="$(FodyMessageImportance) == '' Or $(FodyMessageImportance) == '*Undefined*'">Low</FodyMessageImportance>+ <FodySignAssembly Condition="$(FodySignAssembly) == '' Or $(FodySignAssembly) == '*Undefined*'">$(SignAssembly)</FodySignAssembly>+ <FodyPath Condition="$(FodyPath) == '' Or $(FodyPath) == '*Undefined*'">$(MSBuildThisFileDirectory)</FodyPath>+ </PropertyGroup>+ <UsingTask+ TaskName="Fody.WeavingTask"+ AssemblyFile="$(FodyPath)\Fody.dll" />+ <Target+ AfterTargets="AfterCompile"+ Name="WinFodyTarget"+ Condition=" '$(OS)' == 'Windows_NT'">++ <Fody.WeavingTask+ AssemblyPath="@(IntermediateAssembly)"+ IntermediateDir="$(IntermediateDir)"+ KeyFilePath="$(FodyKeyFilePath)"+ MessageImportance="$(FodyMessageImportance)"+ ProjectDirectory="$(ProjectDir)"+ SolutionDir="$(FodySolutionDir)"+ References="@(ReferencePath)"+ SignAssembly="$(FodySignAssembly)"+ ReferenceCopyLocalPaths="@(ReferenceCopyLocalPaths)"+ DefineConstants="$(DefineConstants)"+ />+ </Target>++ <Target+ AfterTargets="AfterBuild"+ Name="NonWinFodyTarget"+ Condition=" '$(OS)' != 'Windows_NT'">+ <Fody.WeavingTask+ AssemblyPath="$(TargetPath)"+ IntermediateDir="$(IntermediateDir)"+ KeyFilePath="$(FodyKeyFilePath)"+ MessageImportance="$(FodyMessageImportance)"+ ProjectDirectory="$(ProjectDir)"+ SolutionDir="$(FodySolutionDir)"+ References="@(ReferencePath)"+ SignAssembly="$(FodySignAssembly)"+ ReferenceCopyLocalPaths="$(ReferenceCopyLocalPaths)"+ DefineConstants="$(DefineConstants)"+ />+ </Target>+++ <!--Support for ncrunch-->+ <ItemGroup>+ <None Include="$(FodyPath)\*.*" />+ </ItemGroup>++</Project>\ No newline at end of filediff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csprojindex 79b29daa4f..5466fb493d 100644--- a/MediaBrowser.Model/MediaBrowser.Model.csproj+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj@@ -14,7 +14,6 @@<TargetFrameworkVersion>v4.5</TargetFrameworkVersion><ReleaseVersion></ReleaseVersion>- <NuGetPackageImportStamp>e0c2388f</NuGetPackageImportStamp></PropertyGroup><PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "><DebugSymbols>true</DebugSymbols>@@ -442,6 +441,7 @@<Compile Include="Users\UserAction.cs" /><Compile Include="Users\UserActionType.cs" /><Compile Include="Users\UserPolicy.cs" />+ <None Include="Fody.targets" /><None Include="FodyWeavers.xml"><SubType>Designer</SubType></None>@@ -450,9 +450,8 @@</ItemGroup><ItemGroup><Reference Include="Microsoft.CSharp" />- <Reference Include="PropertyChanged, Version=1.50.4.0, Culture=neutral, PublicKeyToken=ee3ee20bcf148ddd, processorArchitecture=MSIL">- <SpecificVersion>False</SpecificVersion>- <HintPath>..\packages\PropertyChanged.Fody.1.50.4\Lib\portable-net4+sl4+wp8+win8+wpa81+MonoAndroid16+MonoTouch40\PropertyChanged.dll</HintPath>+ <Reference Include="PropertyChanged, Version=1.41.0.0, Culture=neutral, processorArchitecture=MSIL">+ <HintPath>..\packages\PropertyChanged.Fody.1.41.0.0\Lib\NET35\PropertyChanged.dll</HintPath><Private>False</Private></Reference><Reference Include="System" />@@ -467,14 +466,13 @@<PropertyGroup><PostBuildEvent /></PropertyGroup>+ <Import Project="..\packages\Fody.1.29.2\build\dotnet\Fody.targets" Condition="Exists('..\packages\Fody.1.29.2\build\dotnet\Fody.targets')" /><Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"><PropertyGroup><ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText></PropertyGroup><Error Condition="!Exists('..\packages\Fody.1.29.2\build\dotnet\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.1.29.2\build\dotnet\Fody.targets'))" />- <Error Condition="!Exists('..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets'))" /></Target>- <Import Project="..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets" Condition="Exists('..\packages\Fody.1.29.2\build\portable-net+sl+win+wpa+wp\Fody.targets')" /><!-- To modify your build process, add your task inside one of the targets below and uncomment it.Other similar extension points exist, see Microsoft.Common.targets.<Target Name="BeforeBuild">diff --git a/MediaBrowser.Model/packages.config b/MediaBrowser.Model/packages.configindex df2ddcf0f6..3d7793afb3 100644--- a/MediaBrowser.Model/packages.config+++ b/MediaBrowser.Model/packages.config@@ -1,5 +1,5 @@<?xml version="1.0" encoding="utf-8"?><packages>- <package id="Fody" version="1.29.2" targetFramework="net45" developmentDependency="true" />- <package id="PropertyChanged.Fody" version="1.50.4" targetFramework="net45" developmentDependency="true" />+ <package id="Fody" version="1.19.1.0" targetFramework="net45" developmentDependency="true" />+ <package id="PropertyChanged.Fody" version="1.41.0.0" targetFramework="net45" /></packages>\ No newline at end of filediff --git a/MediaBrowser.sln b/MediaBrowser.slnindex f0c5ab5efe..a9b5020ec2 100644--- a/MediaBrowser.sln+++ b/MediaBrowser.sln@@ -521,4 +521,7 @@ GlobalGlobalSection(SolutionProperties) = preSolutionHideSolutionNode = FALSEEndGlobalSection+ GlobalSection(Performance) = preSolution+ HasPerformanceSessions = true+ EndGlobalSectionEndGlobal