Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit20e91d7

Browse files
committed
Added new target framework 'net40-xna40-xbox360'.
1 parentd8e0e45 commit20e91d7

File tree

3 files changed

+52
-5
lines changed

3 files changed

+52
-5
lines changed

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ msbuild fsharp-proto-build.proj
4040
msbuild fsharp-library-build.proj
4141
msbuild fsharp-compiler-build.proj
4242
```
43-
You can also build the FSharp.Core for .NET 2.0, Mono 2.1, Silverlight 5.0 andPortable Profile47 (net4+sl4+wp71+win8) profiles:
43+
You can also build the FSharp.Core for .NET 2.0, Mono 2.1, Silverlight 5.0,Portable Profile47 (net4+sl4+wp71+win8) and XNA 4.0 for Xbox 360 profiles:
4444
```
4545
msbuild fsharp-library-build.proj /p:TargetFramework=net20
4646
msbuild fsharp-library-build.proj /p:TargetFramework=mono21
4747
msbuild fsharp-library-build.proj /p:TargetFramework=portable-net4+sl4+wp71+win8
4848
msbuild fsharp-library-build.proj /p:TargetFramework=sl5
49+
msbuild fsharp-library-build.proj /p:TargetFramework=net40-xna40-xbox360
4950
```
5051
You can also build the FSharp.Core and FSharp.Compiler.Silverlight.dll for Silverlight 5.0:
5152
```

‎src/FSharpSource.targets‎

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,51 @@ Some other NuGET monikers to support in the future, see http://docs.nuget.org/do
509509
<OtherFlags>$(OtherFlags) --simpleresolution -r:"C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\mscorlib.dll" -r:"C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\System.dll"</OtherFlags>
510510
</PropertyGroup>
511511

512-
512+
<!-- XNA 4.0 Xbox360-->
513+
<PropertyGroupCondition="'$(TargetFramework)'=='net40-xna40-xbox360'">
514+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
515+
<XnaFrameworkVersion>v4.0</XnaFrameworkVersion>
516+
<XnaPlatform>Xbox 360</XnaPlatform>
517+
<DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants>
518+
<DefineConstants>$(DefineConstants);FX_NO_DEBUG_PROXIES</DefineConstants>
519+
<DefineConstants>$(DefineConstants);FX_NO_EXIT</DefineConstants>
520+
<DefineConstants>$(DefineConstants);FX_NO_IOBSERVABLE</DefineConstants>
521+
<DefineConstants>$(DefineConstants);FX_NO_WEB_CLIENT</DefineConstants>
522+
<DefineConstants>$(DefineConstants);FX_NO_WEB_REQUESTS</DefineConstants>
523+
<DefineConstants>$(DefineConstants);FX_NO_CHAR_PARSE</DefineConstants>
524+
<DefineConstants>$(DefineConstants);FX_NO_DEFAULT_DEPENDENCY_TYPE</DefineConstants>
525+
<DefineConstants>$(DefineConstants);FX_SIMPLE_SECURITY_PERMISSIONS</DefineConstants>
526+
<DefineConstants>$(DefineConstants);FX_NO_TRUNCATE</DefineConstants>
527+
<DefineConstants>$(DefineConstants);FX_NO_CULTURE_INFO_ARGS</DefineConstants>
528+
<DefineConstants>$(DefineConstants);FX_NO_REFLECTION_MODULE_HANDLES</DefineConstants>
529+
<DefineConstants>$(DefineConstants);FX_NO_OPERATION_CANCELLED</DefineConstants>
530+
<DefineConstants>$(DefineConstants);FX_NO_TO_LOWER_INVARIANT</DefineConstants>
531+
<DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants>
532+
<DefineConstants>$(DefineConstants);FX_NO_BASED_ARRAYS</DefineConstants>
533+
<DefineConstants>$(DefineConstants);FX_NO_DOUBLE_BIT_CONVERTER</DefineConstants>
534+
<DefineConstants>$(DefineConstants);FX_NO_BINARY_SERIALIZATION</DefineConstants>
535+
<DefineConstants>$(DefineConstants);FX_NO_ASCII_ENCODING</DefineConstants>
536+
<DefineConstants>$(DefineConstants);FX_NO_DEFAULT_ENCODING</DefineConstants>
537+
<DefineConstants>$(DefineConstants);FX_NO_FILE_OPTIONS</DefineConstants>
538+
<DefineConstants>$(DefineConstants);FX_NO_NONBLOCK_IO</DefineConstants>
539+
<DefineConstants>$(DefineConstants);FX_NO_COMMAND_LINE_ARGS</DefineConstants>
540+
<DefineConstants>$(DefineConstants);FX_NO_ENVIRONMENT</DefineConstants>
541+
<DefineConstants>$(DefineConstants);FX_NO_PROCESS_START</DefineConstants>
542+
<DefineConstants>$(DefineConstants);FX_NO_APP_DOMAINS</DefineConstants>
543+
<DefineConstants>$(DefineConstants);FX_NO_PROCESS_DIAGNOSTICS</DefineConstants>
544+
<DefineConstants>$(DefineConstants);FX_NO_STRUCTURAL_EQUALITY</DefineConstants>
545+
<DefineConstants>$(DefineConstants);FX_NO_LAZY</DefineConstants>
546+
<DefineConstants>$(DefineConstants);FX_NO_TUPLE</DefineConstants>
547+
<DefineConstants>$(DefineConstants);FX_NO_REFLECTION_EMIT</DefineConstants>
548+
<DefineConstants>$(DefineConstants);FX_NO_BIGINT</DefineConstants>
549+
<DefineConstants>$(DefineConstants);FX_NO_MONITOR_REPORTS_LOCKTAKEN</DefineConstants>
550+
<DefineConstants>$(DefineConstants);FX_NO_TPL_PARALLEL</DefineConstants>
551+
<DefineConstants>$(DefineConstants);FX_NO_TASK</DefineConstants>
552+
<DefineConstants>$(DefineConstants);FX_NO_CUSTOMATTRIBUTEDATA</DefineConstants>
553+
<DefineConstants>$(DefineConstants);FX_ATLEAST_PORTABLE</DefineConstants>
554+
<DefineConstants>$(DefineConstants);FX_NO_CANCELLATIONTOKEN_CLASSES</DefineConstants>
555+
<Tailcalls>false</Tailcalls>
556+
</PropertyGroup>
513557

514558
<!-- Always qualify the IntermediateOutputPath by the TargetFramework if any exists-->
515559
<PropertyGroup>
@@ -575,7 +619,8 @@ Some other NuGET monikers to support in the future, see http://docs.nuget.org/do
575619
'$(TargetFramework)' == 'sl5' or
576620
'$(TargetFramework)' == 'sl5-compiler' or
577621
'$(TargetFramework)' == 'wp7' or
578-
'$(TargetFramework)' == 'portable-net4+sl4+wp71+win8')"/>
622+
'$(TargetFramework)' == 'portable-net4+sl4+wp71+win8' or
623+
'$(TargetFramework)' == 'net40-xna40-xbox360')"/>
579624
</Target>
580625

581626
<ImportProject="$(LkgPath)\..\2.0\FSharp.SRGen.targets" />

‎src/fsharp/FSharp.Core/FSharp.Core.fsproj‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,13 @@
215215
<ReferenceInclude="mscorlib" />
216216
<ReferenceInclude="System" />
217217
<ReferenceInclude="System.Numerics"Condition="'$(TargetFramework)' == 'net40'" />
218-
<ReferenceInclude="System.Net"Condition="'$(TargetFramework)' == 'sl5' OR '$(TargetFramework)' == 'sl5-compiler' OR '$(TargetFramework)' == 'XNA\5.0' OR '$(TargetFramework)' == 'wp7' OR '$(TargetFramework)' == 'portable-net4+sl4+wp71+win8'" />
218+
<ReferenceInclude="System.Net"Condition="'$(TargetFramework)' == 'sl5' OR '$(TargetFramework)' == 'sl5-compiler' OR '$(TargetFramework)' == 'XNA\5.0' OR '$(TargetFramework)' == 'wp7' OR '$(TargetFramework)' == 'portable-net4+sl4+wp71+win8'OR '$(TargetFramework)' == 'net40-xna40-xbox360'" />
219219
<ReferenceInclude="System.Observable"Condition="'$(TargetFramework)' == 'wp7'" />
220-
<ReferenceInclude="System.Core"Condition="'$(TargetFramework)' == 'sl5' OR '$(TargetFramework)' == 'sl5-compiler' OR '$(TargetFramework)' == 'XNA\5.0' OR '$(TargetFramework)' == 'wp7' OR '$(TargetFramework)' == 'portable-net4+sl4+wp71+win8'" />
220+
<ReferenceInclude="System.Core"Condition="'$(TargetFramework)' == 'sl5' OR '$(TargetFramework)' == 'sl5-compiler' OR '$(TargetFramework)' == 'XNA\5.0' OR '$(TargetFramework)' == 'wp7' OR '$(TargetFramework)' == 'portable-net4+sl4+wp71+win8'OR '$(TargetFramework)' == 'net40-xna40-xbox360'" />
221221
</ItemGroup>
222222
<!-- References-->
223223
<ImportProject="$(FSharpSourcesRoot)\FSharpSource.targets" />
224+
<ImportProject="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\Microsoft.Xna.GameStudio.targets"Condition="'$(TargetFramework)'=='net40-xna40-xbox360'"/>
224225
<!-- Hook compilation phase to do custom work-->
225226
<PropertyGroup>
226227
<PrepareForRunDependsOn>$(PrepareForRunDependsOn);CopyToBuiltBin</PrepareForRunDependsOn>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp