11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.-->
3- <Project ToolsVersion =" 15.0" DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3+ <Project Sdk =" Microsoft.NET.Sdk" >
4+
45 <PropertyGroup >
5- <FSharpSourcesRoot >$(MSBuildProjectDirectory)\..\..\..\src</FSharpSourcesRoot >
6- <ProjectLanguage >CSharp</ProjectLanguage >
7- <MicroBuildAssemblyVersion >15.4.1.0</MicroBuildAssemblyVersion >
8- <MicroBuildAssemblyFileLanguage >cs</MicroBuildAssemblyFileLanguage >
9- </PropertyGroup >
10- <PropertyGroup >
11- <Configuration Condition =" '$(Configuration)' == ''" >Debug</Configuration >
12- <TargetDotnetProfile Condition =" '$(TargetDotnetProfile)' == ''" >net40</TargetDotnetProfile >
13- <OutputPath >$(FSharpSourcesRoot)\..\$(Configuration)\$(TargetDotnetProfile)\bin</OutputPath >
14- <Platform Condition =" '$(Platform)' == ''" >AnyCPU</Platform >
15- <ProjectGuid >{C4586A06-1402-48BC-8E35-A1B8642F895B}</ProjectGuid >
6+ <TargetFramework >net46</TargetFramework >
167 <OutputType >Library</OutputType >
17- <AppDesignerFolder >Properties</ AppDesignerFolder >
8+ <GenerateAssemblyInfo >false</ GenerateAssemblyInfo >
189 <RootNamespace >Microsoft.VisualStudio.FSharp.UIResources</RootNamespace >
19- <AssemblyName >FSharp.UIResources</AssemblyName >
20- <TargetType >LIBRARY</TargetType >
21- <UseVsVersion >true</UseVsVersion >
22- <DefineConstants >$(DefineConstants)</DefineConstants >
23- <TargetFrameworkVersion >v4.6</TargetFrameworkVersion >
24- <AutoGenerateBindingRedirects >true</AutoGenerateBindingRedirects >
25- </PropertyGroup >
26- <PropertyGroup >
27- <SignAssembly >true</SignAssembly >
28- <AssemblyOriginatorKeyFile >$(FSharpSourcesRoot)\fsharp\msft.pubkey</AssemblyOriginatorKeyFile >
29- <DefineConstants >STRONG_NAME_AND_DELAY_SIGN_FSHARP_COMPILER_WITH_MSFT_KEY;$(DefineConstants)</DefineConstants >
30- <StrongNames >true</StrongNames >
31- <DelaySign >true</DelaySign >
3210 </PropertyGroup >
11+
3312 <ItemGroup >
34- <FilesToLocalize Include =" $(OutDir)$(AssemblyName).dll " >
35- < TranslationFile >$(FSharpSourcesRoot)\..\loc\lcl\{Lang}\$(AssemblyName).dll.lcl</ TranslationFile >
36- < LciCommentFile >$(FSharpSourcesRoot)\..\loc\lci\$(AssemblyName).dll.lci</ LciCommentFile >
37- < HasLceComments >false</ HasLceComments >
38- < InProject >false</ InProject >
39- </ FilesToLocalize >
13+ <InternalsVisibleTo Include =" FSharp.Editor " / >
14+ < InternalsVisibleTo Include = " FSharp.LanguageService " / >
15+ < InternalsVisibleTo Include = " FSharp.ProjectSystem.Base " / >
16+ < InternalsVisibleTo Include = " FSharp.ProjectSystem.FSharp " / >
17+ < InternalsVisibleTo Include = " VisualFSharp.Salsa " / >
18+ <InternalsVisibleTo Include = " VisualFSharp.UnitTests " / >
4019 </ItemGroup >
41- < Import Project = " $(FSharpSourcesRoot)\FSharpSource.settings.targets " />
20+
4221 <ItemGroup >
4322 <Reference Include =" PresentationCore" />
4423 <Reference Include =" PresentationFramework" />
45- <Reference Include =" System.Drawing" />
4624 <Reference Include =" System" />
4725 <Reference Include =" System.Core" />
4826 <Reference Include =" System.Data" />
27+ <Reference Include =" System.Drawing" />
4928 <Reference Include =" System.Windows" />
5029 <Reference Include =" System.Xaml" />
5130 <Reference Include =" System.Xml" />
5231 <Reference Include =" WindowsBase" />
5332 </ItemGroup >
33+
34+ <!-- The following are hacks to allow WPF to build.-->
5435 <ItemGroup >
55- <Compile Include =" CodeFixesOptionControl.xaml.cs" >
56- <DependentUpon >CodeFixesOptionControl.xaml</DependentUpon >
57- </Compile >
58- <Compile Include =" IntegerRangeValidationRule.cs" />
59- <Compile Include =" LanguageServicePerformanceOptionControl.xaml.cs" >
60- <DependentUpon >LanguageServicePerformanceOptionControl.xaml</DependentUpon >
61- </Compile >
62- <Compile Include =" IntelliSenseOptionControl.xaml.cs" >
63- <DependentUpon >IntelliSenseOptionControl.xaml</DependentUpon >
64- </Compile >
65- <Compile Include =" InternalsVisibleTo.cs" />
66- <Compile Include =" QuickInfoOptionControl.xaml.cs" >
67- <DependentUpon >QuickInfoOptionControl.xaml</DependentUpon >
68- </Compile >
69- <Compile Include =" Properties\AssemblyInfo.cs" />
70- <Compile Include =" Strings.Designer.cs" >
71- <AutoGen >True</AutoGen >
72- <DesignTime >True</DesignTime >
73- <DependentUpon >Strings.resx</DependentUpon >
74- </Compile >
36+ <!-- <ApplicationDefinition Include="App.xaml" SubType="Designer" Generator="MSBuild:Compile" />-->
37+ <!-- <Page Include="**\*.xaml" SubType="Designer" Generator="MSBuild:Compile" Exclude="App.xaml" />-->
38+ <Page Include =" **\*.xaml" SubType =" Designer" Generator =" MSBuild:Compile" />
39+ <None Include =" @(Page)" />
40+ <None Include =" @(Resource)" />
41+ <Compile Update =" **\*.xaml.cs" SubType =" Designer" DependentUpon =" %(Filename)" />
42+ <Compile Update =" $(IntermediateOutputPath)**\*.g.cs" Visible =" false" />
7543 </ItemGroup >
76- <ItemGroup >
77- <Page Include =" CodeFixesOptionControl.xaml" >
78- <Generator >MSBuild:Compile</Generator >
79- <SubType >Designer</SubType >
80- </Page >
81- <Page Include =" HyperlinkStyles.xaml" >
82- <Generator >MSBuild:Compile</Generator >
83- <SubType >Designer</SubType >
84- </Page >
85- <Page Include =" LanguageServicePerformanceOptionControl.xaml" >
86- <Generator >MSBuild:Compile</Generator >
87- <SubType >Designer</SubType >
88- </Page >
89- <Page Include =" IntelliSenseOptionControl.xaml" >
90- <SubType >Designer</SubType >
91- <Generator >MSBuild:Compile</Generator >
92- </Page >
93- <Page Include =" OptionPageStyle.xaml" >
94- <Generator >MSBuild:Compile</Generator >
95- <SubType >Designer</SubType >
96- </Page >
97- <Page Include =" QuickInfoOptionControl.xaml" >
98- <Generator >MSBuild:Compile</Generator >
99- <SubType >Designer</SubType >
100- </Page >
101- </ItemGroup >
102- <ItemGroup >
103- <EmbeddedResource Include =" Strings.resx" >
104- <Generator >PublicResXFileCodeGenerator</Generator >
105- <LastGenOutput >Strings.Designer.cs</LastGenOutput >
106- <SubType >Designer</SubType >
107- </EmbeddedResource >
108- </ItemGroup >
109- <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
110- <Import Project =" $(FSharpSourcesRoot)\Microbuild.Settings.targets" />
111- </Project >
44+
45+ <PropertyGroup >
46+ <VSMSBuildBinDir >$(VS150COMNTOOLS)\..\..\MSBuild\$(VisualStudioVersion)\Bin</VSMSBuildBinDir >
47+ <LanguageTargets Condition =" Exists('$(VSMSBuildBinDir)')" >$(VSMSBuildBinDir)\Microsoft.CSharp.targets</LanguageTargets >
48+ </PropertyGroup >
49+
50+ <Target Name =" WorkaroundForXAMLIntellisenseBuildIssue" AfterTargets =" _CheckCompileDesignTimePrerequisite" >
51+ <PropertyGroup >
52+ <BuildingProject >false</BuildingProject >
53+ </PropertyGroup >
54+ </Target >
55+
56+ </Project >