|
12 | 12 | <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
13 | 13 | <FileAlignment>512</FileAlignment> |
14 | 14 | <TargetFrameworkProfile>Client</TargetFrameworkProfile> |
| 15 | + <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> |
| 16 | + <RestorePackages>true</RestorePackages> |
15 | 17 | </PropertyGroup> |
16 | 18 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
17 | 19 | <DebugSymbols>true</DebugSymbols> |
|
44 | 46 | </ItemGroup> |
45 | 47 | <ItemGroup> |
46 | 48 | <Reference Include="Jurassic, Version=3.0.0.0, Culture=neutral, PublicKeyToken=42f272f6dd312a2c, processorArchitecture=MSIL"> |
47 | | - <SpecificVersion>False</SpecificVersion> |
48 | | - <HintPath>..\..\lib\Jurassic\lib\net40-client\Jurassic.dll</HintPath> |
| 49 | + <HintPath>..\..\packages\Jurassic.Unofficial.2017.12.12\lib\net40-client\Jurassic.dll</HintPath> |
| 50 | + <Private>True</Private> |
49 | 51 | </Reference> |
50 | 52 | <Reference Include="System" /> |
51 | 53 | <Reference Include="System.Core" /> |
|
54 | 56 | <None Include="..\..\tools\Key.snk"> |
55 | 57 | <Link>Key.snk</Link> |
56 | 58 | </None> |
| 59 | + <None Include="packages.config" /> |
57 | 60 | </ItemGroup> |
58 | 61 | <ItemGroup> |
59 | 62 | <Compile Include="..\JavaScriptEngineSwitcher.Jurassic\FileScriptSource.cs"> |
|
82 | 85 | <Folder Include="Properties\" /> |
83 | 86 | </ItemGroup> |
84 | 87 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| 88 | + <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> |
| 89 | + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| 90 | + <PropertyGroup> |
| 91 | + <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> |
| 92 | + </PropertyGroup> |
| 93 | + <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" /> |
| 94 | + </Target> |
85 | 95 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
86 | 96 | Other similar extension points exist, see Microsoft.Common.targets. |
87 | 97 | <Target Name="BeforeBuild"> |
|
0 commit comments