Skip to content

Commit ea00c4b

Browse files
committed
Merge pull request dotnet#218 from KevinRansom/VS2015Support
1. Revert AppVeyor to use Dev 12, until AppVeyor provide Pro support fo...
2 parents d2433da + 2747996 commit ea00c4b

File tree

7 files changed

+33
-29
lines changed

7 files changed

+33
-29
lines changed

appveyor-build.cmd

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ if not exist %_ngenexe% echo Error: Could not find ngen.exe. && goto :eof
2929
%_ngenexe% install proto\net40\bin\FSharp.Build-proto.dll
3030
%_ngenexe% install proto\net40\bin\fsc-proto.exe
3131

32-
%_msbuildexe% src/fsharp-library-build.proj /p:UseNugetPackages=true /p:Configuration=Release
32+
%_msbuildexe% src/fsharp-library-build.proj /p:Configuration=Release
3333
@if ERRORLEVEL 1 echo Error: library release build failed && goto :eof
3434

35-
%_msbuildexe% src/fsharp-compiler-build.proj /p:UseNugetPackages=true /p:Configuration=Release
35+
%_msbuildexe% src/fsharp-compiler-build.proj /p:Configuration=Release
3636
@if ERRORLEVEL 1 echo Error: compile Release build failed && goto :eof
3737

3838
REM We don't build new net20 FSharp.Core anymore
@@ -68,6 +68,12 @@ REM @if ERRORLEVEL 1 echo Error: library net20 build failed && goto :eof
6868
%_msbuildexe% src/fsharp-library-unittests-build.proj /p:TargetFramework=portable259 /p:Configuration=Release
6969
@if ERRORLEVEL 1 echo Error: library unittests build failed portable259 && goto :eof
7070

71+
%_msbuildexe% vsintegration\fsharp-vsintegration-build.proj /p:TargetFramework=net40 /p:Configuration=Release
72+
@if ERRORLEVEL 1 echo Error: library unittests build failed vsintegration-unittests && goto :eof
73+
74+
%_msbuildexe% vsintegration\fsharp-vsintegration-unittests-build.proj /p:TargetFramework=net40 /p:Configuration=Release
75+
@if ERRORLEVEL 1 echo Error: library unittests build failed vsintegration-unittests && goto :eof
76+
7177
@echo on
7278
call src\update.cmd release -ngen
7379

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
os: Visual Studio 2015 CTP
1+
os: Windows Server 2012 R2
22

33
init:
44
build_script:

src/FSharpSource.targets

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,4 +745,11 @@
745745
<Target Name="BeforeBuild" BeforeTargets="Build">
746746
<Exec Command=".\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages" WorkingDirectory="$(FSharpSourcesRoot)\.."/>
747747
</Target>
748+
749+
<Target Name="BeforeResolveReferences">
750+
<CreateProperty Value="$(ProjectDir)..\..\..\packages\NUnit.2.6.3\lib\;$(ProjectDir)..\..\..\packages\NUnit.Runners.2.6.3\tools\lib\;$(AssemblySearchPaths)">
751+
<Output TaskParameter="Value"
752+
PropertyName="AssemblySearchPaths" />
753+
</CreateProperty>
754+
</Target>
748755
</Project>

tests/BuildTestTools.cmd

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,23 @@ exit /b 1
1515

1616
:ok
1717

18+
:: Check prerequisites
19+
if not '%VisualStudioVersion%' == '' goto vsversionset
20+
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\common7\ide\devenv.exe" set VisualStudioVersion=14.0
21+
if not '%VisualStudioVersion%' == '' goto vsversionset
22+
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\common7\ide\devenv.exe" set VisualStudioVersion=12.0
23+
:vsversionset
24+
if '%VisualStudioVersion%' == '' echo Error: Could not find a Visual Studio Installed.MSBuild.exe. Please see http://www.visualstudio.com/en-us/news/vs2015-vs.aspx. && goto :eof
25+
26+
if '%VisualStudioVersion%'=='14.0' set _msbuildexe="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe"
27+
if '%VisualStudioVersion%'=='12.0' set _msbuildexe="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe"
28+
if not exist %_msbuildexe% echo Error: Could not find MSBuild.exe. Please see http://www.microsoft.com/en-us/download/details.aspx?id=40760. && goto :eof
29+
1830
if not exist "%~dp0\fsharpqa\testenv\bin" mkdir "%~dp0\fsharpqa\testenv\bin" || goto :error
19-
msbuild %~dp0\fsharpqa\testenv\src\ILComparer\ILComparer.fsproj /p:Configuration=%1 /t:Build || goto :error
31+
%_msbuildexe% %~dp0\fsharpqa\testenv\src\ILComparer\ILComparer.fsproj /p:Configuration=%1 /t:Build || goto :error
2032
xcopy /Y %~dp0\fsharpqa\testenv\src\ILComparer\bin\%1\* %~dp0\fsharpqa\testenv\bin || goto :error
2133

22-
msbuild %~dp0\fsharpqa\testenv\src\HostedCompilerServer\HostedCompilerServer.fsproj /p:Configuration=%1 /t:Build || goto :error
34+
%_msbuildexe% %~dp0\fsharpqa\testenv\src\HostedCompilerServer\HostedCompilerServer.fsproj /p:Configuration=%1 /t:Build || goto :error
2335
xcopy /Y %~dp0\fsharpqa\testenv\src\HostedCompilerServer\bin\%1\* %~dp0\fsharpqa\testenv\bin || goto :error
2436

2537
if exist %~dp0\..\%1\net40\bin (

vsintegration/src/Salsa/Salsa.fsproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,4 @@
104104
</ProjectReference>
105105
</ItemGroup>
106106
<Import Project="$(FSharpSourcesRoot)\FSharpSource.targets" />
107-
<Target Name="BeforeResolveReferences" Condition="'$(UseNugetPackages)'=='true'">
108-
<CreateProperty Value="$(ProjectDir)..\..\..\packages\NUnit.2.6.3\lib\;$(ProjectDir)..\..\..\packages\NUnit.Runners.2.6.3\tools\lib\;$(AssemblySearchPaths)">
109-
<Output TaskParameter="Value"
110-
PropertyName="AssemblySearchPaths" />
111-
</CreateProperty>
112-
</Target>
113107
</Project>

vsintegration/src/unittests/Unittests.fsproj

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,8 @@
112112
<Reference Include="Microsoft.VisualStudio.Designer.Interfaces" />
113113
<Reference Include="Microsoft.VisualStudio.CommonIDE" />
114114
<Reference Include="Microsoft.VisualStudio.VSHelp.dll" />
115-
<Reference Include="nunit.framework.dll">
116-
<Private>True</Private>
117-
</Reference>
118-
<Reference Include="nunit.util.dll">
119-
<Private>True</Private>
120-
</Reference>
121-
<Reference Include="nunit.framework, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
122-
<SpecificVersion>true</SpecificVersion>
123-
<HintPath>$(FSharpSourcesRoot)\..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
124-
</Reference>
115+
<Reference Include="nunit.util.dll"><Private>True</Private></Reference>
116+
<Reference Include="nunit.framework.dll"><Private>True</Private></Reference>
125117
<ProjectReference Include="$(FSharpSourcesRoot)\fsharp\Fsc\Fsc.fsproj">
126118
<Project>{ffde9e47-9675-4498-b540-69b2583dd600}</Project>
127119
<Name>Fsc</Name>
@@ -178,11 +170,4 @@
178170
</ProjectReference>
179171
</ItemGroup>
180172
<Import Project="$(FSharpSourcesRoot)\FSharpSource.targets" />
181-
<Target Name="BeforeResolveReferences" Condition="'$(UseNugetPackages)'=='true'">
182-
<CreateProperty Value="$(ProjectDir)..\..\..\packages\NUnit.2.6.3\lib\;$(ProjectDir)..\..\..\packages\NUnit.Runners.2.6.3\tools\lib\;$(AssemblySearchPaths)">
183-
<Output TaskParameter="Value"
184-
PropertyName="AssemblySearchPaths" />
185-
</CreateProperty>
186-
</Target>
187-
188173
</Project>

vsintegration/src/vs/FsPkgs/FSharp.Project/FS/ProjectSystem.fsproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,6 @@
136136
<Win32Resource>$(IntermediateOutputPath)\ProjectResources.rc.res</Win32Resource>
137137
</PropertyGroup>
138138
<Target Name="BeforeBuild">
139-
<Exec Command="rc.exe /fo $(IntermediateOutputPath)$(RCResourceFile).res $(RCResourceFile)" />
139+
<Exec Command='"$(ProgramFiles)\Windows Kits\8.1\bin\x86\rc.exe" /fo $(IntermediateOutputPath)$(RCResourceFile).res $(RCResourceFile)' />
140140
</Target>
141141
</Project>

0 commit comments

Comments
 (0)