/
Support Statement: Setting Platform for builds

Support Statement: Setting Platform for builds

By default gmStudio authors .NET project files (eg. .csproj) to build for Platform=AnyCPU.  You may easily alter this using an Author/Fix in your translation script:

...
<Author>
<Fix name="PostEdit">
   <Replace name="Force Set Debug Configuration to PlatformTarget=x86" lang="csproj">
   <OldBlock><![CDATA[
      <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
   ]]></OldBlock>
   <NewBlock><![CDATA[
      <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
         <PlatformTarget>x86</PlatformTarget>
   ]]></NewBlock>
   </Replace>
</Fix>
</Author>

Most of the default structure and other "boiler plate" content in .NET project files is defined by gmSL logic in the system configuration file, AuthorText.gmsl.  An alternative to the above fix is to use a project-specific version of AuthorText.gmsl.  The instructions for doing this are discussed in this article on Custom VB6 Language Replacement.
 



Related content

Support Statement: Override a routine in authortext.gmsl
Support Statement: Override a routine in authortext.gmsl
More like this
Configuration
More like this
Support Statement: System Metalanguage Files
Support Statement: System Metalanguage Files
More like this
Translation
More like this
gmStudio Configuration Form
gmStudio Configuration Form
More like this
Updating Project-specific Metalanguage Files
Updating Project-specific Metalanguage Files
More like this