Skip to content

Commit

Permalink
move reducesize property before Microsoft.SPOT.System.Settings in tem…
Browse files Browse the repository at this point in the history
…plates
  • Loading branch information
mortezag committed Mar 30, 2015
1 parent 1aaac29 commit 2f60c50
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3138,13 +3138,12 @@ internal void SaveProjectProj(MFProject mfproj)

ProjectPropertyGroupElement bpg = SaveStringProps(proj, mfproj, tbl);

if (mfproj.Properties.Any(p => p.Name == "reducesize"))
var reducesizeProp = mfproj.Properties.FirstOrDefault(p => p.Name == "reducesize");
if (reducesizeProp != null)
{
var prop = mfproj.Properties.First(p => p.Name == "reducesize");
bpg.AddProperty("reducesize", prop.Value);
bpg.AddProperty("reducesize", reducesizeProp.Value);
}


ProjectImportElement pi = proj.Xml.AddImport(@"$(SPOCLIENT)\tools\targets\Microsoft.SPOT.System.Settings");

if (mfproj.IsClrProject)
Expand Down
2 changes: 1 addition & 1 deletion ProjectTemplates/TinyBooter/TinyBooter.proj
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<ProjectPath>$(SPOCLIENT)\ProjectTemplates\TinyBooter\TinyBooter.proj</ProjectPath>
<MFSettingsFile>
</MFSettingsFile>
<reducesize>true</reducesize>
</PropertyGroup>
<Import Project="$(SPOCLIENT)\tools\targets\Microsoft.SPOT.System.Settings" />
<Import Project="$(SPOCLIENT)\tools\Targets\Microsoft.SPOT.Build.Targets" />
<PropertyGroup>
<OutputType>Executable</OutputType>
<reducesize>true</reducesize>
<MultipleOutputSections>false</MultipleOutputSections>
<CustomAssemblyName>TinyBooter</CustomAssemblyName>

Expand Down
2 changes: 1 addition & 1 deletion ProjectTemplates/TinyBooter/TinyBooterDecompressor.proj
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<ProjectPath>$(SPOCLIENT)\ProjectTemplates\TinyBooter\TinyBooterDecompressor.proj</ProjectPath>
<MFSettingsFile>
</MFSettingsFile>
<reducesize>true</reducesize>
</PropertyGroup>
<Import Project="$(SPOCLIENT)\tools\targets\Microsoft.SPOT.System.Settings" />
<Import Project="$(SPOCLIENT)\tools\Targets\Microsoft.SPOT.Build.Targets" />
<PropertyGroup>
<OutputType>Executable</OutputType>
<reducesize>true</reducesize>
<MultipleOutputSections>false</MultipleOutputSections>
<ExtraTargets>BuildSigFiles</ExtraTargets>
<ScatterFileDefinition>scatterfile_bootloader_decompressor_$(COMPILER_TOOL).$(SCATTER_EXT)</ScatterFileDefinition>
Expand Down
1 change: 1 addition & 0 deletions ProjectTemplates/TinyCLR/TinyCLR.proj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<Directory>Solutions\$(PLATFORM)\TinyCLR</Directory>
<IsClrProject>True</IsClrProject>
<ProjectPath>$(SPOCLIENT)\ProjectTemplates\TinyCLR\TinyCLR.proj</ProjectPath>
<reducesize>false</reducesize>
</PropertyGroup>
<Import Project="$(SPOCLIENT)\tools\targets\Microsoft.SPOT.System.Settings" />
<Import Project="$(SPOCLIENT)\tools\Targets\Microsoft.SPOT.Build.Targets" />
Expand Down

0 comments on commit 2f60c50

Please sign in to comment.