Skip to content

Commit 74968a5

Browse files
author
7sharp9
committed
Added fix for F# project template item not being copied to the output folded. Added assembly inof for F# template.
1 parent 226e830 commit 74968a5

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

ProjectTemplates/MonoDevelop/MonoDevelop.MonoGame/MonoDevelop.MonoGame/MonoDevelop.MonoGame.Linux.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@
8585
<Content Include="templates\MonoGameMacFsharpProject.xpt.xml">
8686
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
8787
</Content>
88+
<Content Include="templates\MonoGameApplication\MacGame.fs">
89+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
90+
</Content>
91+
<Content Include="templates\MonoGameApplication\MacMain.fs">
92+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
93+
</Content>
8894
</ItemGroup>
8995
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
9096
<ItemGroup>
@@ -168,8 +174,4 @@
168174
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
169175
</Content>
170176
</ItemGroup>
171-
<ItemGroup>
172-
<None Include="templates\MonoGameApplication\MacGame.fs" />
173-
<None Include="templates\MonoGameApplication\MacMain.fs" />
174-
</ItemGroup>
175177
</Project>

ProjectTemplates/MonoDevelop/MonoDevelop.MonoGame/MonoDevelop.MonoGame/templates/MonoGameApplication/MacGame.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ open Microsoft.Xna.Framework.Media
4444
spriteBatch.Begin()
4545

4646
// draw the logo
47-
spriteBatch.Draw (logoTexture, new Vector2 (130.f, 200.f), Color.White);
47+
spriteBatch.Draw (logoTexture, Vector2 (130.f, 200.f), Color.White);
4848
spriteBatch.End()
4949

5050
//TODO: Add your drawing code here

ProjectTemplates/MonoDevelop/MonoDevelop.MonoGame/MonoDevelop.MonoGame/templates/MonoGameMacFsharpProject.xpt.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,17 @@
2626
<Reference type="Gac" refto="System.Xml.Linq" />
2727
<Reference type="Gac" refto="System.Drawing" />
2828
<Reference type="Gac" refto="MonoMac" SpecificVersion="false" />
29-
3029
<Reference type="Gac" refto="MonoGame.Framework.MacOS" />
3130
<Reference type="Gac" refto="Lidgren.Network.MacOS" />
32-
3331
</References>
3432
<Files>
33+
<FileTemplateReference TemplateID="FSharpAssemblyInfo" name="AssemblyInfo.fs" />
3534
<File name="Game1.fs" AddStandardHeader="True" src="MonoGameApplication/MacGame.fs" />
3635
<File name="Main.fs" AddStandardHeader="True" src="MonoGameApplication/MacMain.fs" />
3736
<File name="Info.plist" AddStandardHeader="False" src="MonoGameApplication/MacInfo.plist" />
3837
<Directory name="Content">
3938
<RawFile name="logo.png" src="MonoGameApplication/Icon-hd.png" />
4039
</Directory>
41-
<!-- <Directory name="Properties">
42-
<File name="AssemblyInfo.cs" AddStandardHeader="True" src="MonoGameApplication/AssemblyInfo.cs" />
43-
</Directory>-->
4440
</Files>
4541
</Project>
4642
</Combine>

0 commit comments

Comments
 (0)