|
11 | 11 | <AssemblyName>JavaScriptEngineSwitcher.Jint</AssemblyName> |
12 | 12 | <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
13 | 13 | <FileAlignment>512</FileAlignment> |
| 14 | + <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir> |
| 15 | + <RestorePackages>true</RestorePackages> |
14 | 16 | </PropertyGroup> |
15 | 17 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
16 | 18 | <DebugSymbols>true</DebugSymbols> |
|
38 | 40 | <ItemGroup> |
39 | 41 | <Reference Include="Jint, Version=2.1.0.0, Culture=neutral, PublicKeyToken=2e92ba9c8d81157f, processorArchitecture=MSIL"> |
40 | 42 | <SpecificVersion>False</SpecificVersion> |
41 | | - <HintPath>..\Binaries\Jint\Jint.dll</HintPath> |
| 43 | + <HintPath>..\packages\Jint.2.2.0\lib\portable-net40+sl50+win+wp80\Jint.dll</HintPath> |
42 | 44 | </Reference> |
43 | 45 | <Reference Include="System" /> |
44 | 46 | <Reference Include="System.Core" /> |
|
52 | 54 | <None Include="..\JavaScriptEngineSwitcher.snk"> |
53 | 55 | <Link>JavaScriptEngineSwitcher.snk</Link> |
54 | 56 | </None> |
| 57 | + <None Include="packages.config" /> |
55 | 58 | </ItemGroup> |
56 | 59 | <ItemGroup> |
57 | 60 | <ProjectReference Include="..\JavaScriptEngineSwitcher.Core\JavaScriptEngineSwitcher.Core.csproj"> |
|
60 | 63 | </ProjectReference> |
61 | 64 | </ItemGroup> |
62 | 65 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| 66 | + <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> |
| 67 | + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| 68 | + <PropertyGroup> |
| 69 | + <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> |
| 70 | + </PropertyGroup> |
| 71 | + <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" /> |
| 72 | + </Target> |
63 | 73 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
64 | 74 | Other similar extension points exist, see Microsoft.Common.targets. |
65 | 75 | <Target Name="BeforeBuild"> |
|
0 commit comments