Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Undefined Environment Variables FLAVOR_WIN (FLAVOR, Configuration,..)? #279

Open
@doingnz

Description

@doingnz

FLAVOR_WIN appears to be undefined? or did I miss something?
Do we need add back in the lines to set the default FLAVOR_WIN to init.cmd?

tools\scripts\init.cmd script in the past defined two environment variables FLAVOR_DAT and FLAVOR_WIN as follows:

if /I "%FLAVOR_DAT%"   == "Debug"   set FLAVOR_DAT=Debug
if /I "%FLAVOR_DAT%"   == "Release" set FLAVOR_DAT=Release
if    "%FLAVOR_DAT%"   == ""        set FLAVOR_DAT=Release

if /I "%FLAVOR_WIN%"   == "Debug"   set FLAVOR_WIN=Debug
if /I "%FLAVOR_WIN%"   == "Release" set FLAVOR_WIN=Release
if    "%FLAVOR_WIN%"   == ""        set FLAVOR_WIN=Release

In init.cmd in MF v4.4, the above lines defining a default for FLAVOR_WIN have been removed leaving FLAVOUR_DAT alone.

FLAVOR_WIN is used later in the same init.cmd and it has not been defined.

set BUILD_TREE_SERVER=%BUILD_ROOT%\%FLAVOR_WIN%\server

also in setenv_base.cmd

set PATH=%CLRROOT%\BuildOutput\Public\%FLAVOR_WIN%\Test\Server\dll;%PATH%

It is referenced in many other project files..

  C:\Projects\BPplus\netmf\netmf-interpreter\BuildEnv.props(23):    <FLAVOR_WIN Condition="'$(FLAVOR_WIN)'=='' AND '$(Configuration)'=='Debug'" >Debug</FLAVOR_WIN>
  C:\Projects\BPplus\netmf\netmf-interpreter\BuildEnv.props(24):    <FLAVOR_WIN Condition="'$(FLAVOR_WIN)'=='' AND '$(Configuration)'!='Debug'" >Release</FLAVOR_WIN>
  C:\Projects\BPplus\netmf\netmf-interpreter\setenv_base.cmd(74):set PATH=%CLRROOT%\BuildOutput\Public\%FLAVOR_WIN%\Test\Server\dll;%PATH%
  C:\Projects\BPplus\netmf\netmf-interpreter\setenv_base.cmd(92):Title MF %FLAVOR_WIN% (%COMPILER_TOOL% %COMPILER_TOOL_VERSION_NUM%)
  C:\Projects\BPplus\netmf\netmf-interpreter\CLR\Tools\EmulatorInterface\EmulatorInterface.csproj(6):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Debugger\WinUsb\WinUsb.csproj(6):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\AbortHandlerClient\AbortHandlerClient.csproj(5):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\BuildTasks\BuildTasks.csproj(6):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\BuildTasksInternal\InternalBuildTasks.csproj(6):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\BuildTasksNativeBuild\NativeBuildTasks.csproj(5):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\DumpTypeHashes\DumpTypeHashes.csproj(5):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\Emulator\Emulator.csproj(6):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\Emulators\CommandLineEmulator\CommandLineEmulator.csproj(5):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\MFDeploy\Application\MFDeploy.csproj(6):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\MFDeploy\Library\MFDeployEngine.csproj(6):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\MFDeploy\MFDeployCom\MFDeployCom.csproj(6):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\MFProfiler\MFProfiler.csproj(6):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\ScatterFileProcessor\ScatterFileProcessor.csproj(5):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Framework\Tools\SerialDump\SerialDump.csproj(5):        <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ItemTemplates\CSharp\AssemblyInfo\AssemblyInfoTemplateProject.csproj(25):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ItemTemplates\CSharp\Class\ClassTemplateProject.csproj(25):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ItemTemplates\VisualBasic\Class\VBClassTemplateProject.csproj(25):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ProjectTemplates\CSharp\EmulatorTemplate\EmulatorTemplateProject.csproj(21):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ProjectTemplates\CSharp\ExeTemplate\ExeTemplateProject.csproj(25):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ProjectTemplates\CSharp\LibTemplate\LibTemplateProject.csproj(25):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ProjectTemplates\CSharp\WinTemplate\WinTemplateProject.csproj(25):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ProjectTemplates\VB\EmulatorTemplate\VBEmulatorTemplateProject.csproj(21):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ProjectTemplates\VB\ExeTemplate\VBExeTemplateProject.csproj(25):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ProjectTemplates\VB\LibTemplate\VBLibTemplateProject.csproj(25):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Product\AllSDK\ProjectTemplates\VB\WinTemplate\VBWinTemplateProject.csproj(25):    <Configuration Condition="'$(FLAVOR_WIN)'!=''">$(FLAVOR_WIN)</Configuration>
  C:\Projects\BPplus\netmf\netmf-interpreter\Test\Platform\Tools\AutomationTasks\bap.cmd(4):if /i not "%FLAVOR_WIN%"=="Debug" (
  C:\Projects\BPplus\netmf\netmf-interpreter\tools\scripts\init.cmd(19):if /I "%FLAVOR_WIN%"   == "Debug"   set FLAVOR_WIN=Debug
  C:\Projects\BPplus\netmf\netmf-interpreter\tools\scripts\init.cmd(20):if /I "%FLAVOR_WIN%"   == "Release" set FLAVOR_WIN=Release
  C:\Projects\BPplus\netmf\netmf-interpreter\tools\scripts\init.cmd(21):if    "%FLAVOR_WIN%"   == ""        set FLAVOR_WIN=Release
  C:\Projects\BPplus\netmf\netmf-interpreter\tools\scripts\init.cmd(44):set BUILD_TREE_SERVER=%BUILD_ROOT%\%FLAVOR_WIN%\server
  C:\Projects\BPplus\netmf\netmf-interpreter\tools\Targets\Microsoft.SPOT.Support.Settings(105):    <FLAVOR_WIN Condition="'$(FLAVOR_TMP)'=='Debug'" >Debug</FLAVOR_WIN>
  C:\Projects\BPplus\netmf\netmf-interpreter\tools\Targets\Microsoft.SPOT.Support.Settings(106):    <FLAVOR_WIN Condition="'$(FLAVOR_TMP)'!='Debug'" >Release</FLAVOR_WIN>

"Microsoft.SPOT.Support.Settings" are not included as per the commented out Import in "Microsoft.SPOT.Build.Setup.Targets"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions