diff options
| author | Jose Alacan <samurayx89@gmail.com> | 2016-02-21 19:20:08 -0500 |
|---|---|---|
| committer | Jose Alacan <samurayx89@gmail.com> | 2016-02-21 19:20:08 -0500 |
| commit | 52d93c6ec9405c2b71c8e547d05f1b17754ddf7b (patch) | |
| tree | 13b4c384246db8ba39df9dad9b2fd89db5a3b8e3 | |
| parent | c3361458adfd9fcdbf1431de52826f05feaf1d11 (diff) | |
Allow build in Visual 2015 Update Fody
| -rw-r--r-- | MediaBrowser.Model/MediaBrowser.Model.csproj | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index a5191192c..5466fb493 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -11,7 +11,6 @@ <AssemblyName>MediaBrowser.Model</AssemblyName> <FileAlignment>512</FileAlignment> <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir> - <FodyPath>..\packages\Fody.1.19.1.0</FodyPath> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <ReleaseVersion> </ReleaseVersion> @@ -443,29 +442,37 @@ <Compile Include="Users\UserActionType.cs" /> <Compile Include="Users\UserPolicy.cs" /> <None Include="Fody.targets" /> - <None Include="FodyWeavers.xml" /> + <None Include="FodyWeavers.xml"> + <SubType>Designer</SubType> + </None> <None Include="MediaBrowser.Model.snk" /> <None Include="packages.config" /> </ItemGroup> <ItemGroup> <Reference Include="Microsoft.CSharp" /> - <Reference Include="System" /> - <Reference Include="System.Core" /> - <Reference Include="System.Runtime.Serialization" /> - <Reference Include="PropertyChanged"> + <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" /> + <Reference Include="System.Core" /> + <Reference Include="System.Runtime.Serialization" /> <Reference Include="System.Xml" /> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <PropertyGroup> <PostBuildEvent /> </PropertyGroup> - <Import Project="Fody.targets" /> <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'))" /> + </Target> <!-- 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"> |
