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

DeepElement/MetroArgs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

metronode MetroArgs

Support for Build Variables in Universal Apps
Part of the MetroNode toolset.


#How to Setup

  1. Install the MetroArgs NuGet package to your project
  2. Load up the configuration file in your JS:
 WinJS.xhr({ url: ".metroargs.json" }).then(function (respObj) {
        var parsedObject = JSON.parse(respObj.responseText);
        console.log(parsedObject.Configuration);
    });

#Source Control The configuration file is generated at runtime and stored in a file called .metroargs.json. Consider adding wildcard match .* to your exclusion file for Git/SVN/HG.

#Additional Arguments To Extend to export your own project's arguments, just add an itemgroup to your project's build file:

  <ItemGroup>
    <MSBuildVariable Include="Configuration" />
    <EnvironmentalVariable Include="OS" />
  </ItemGroup>

About

Support for Build Variables in Universal Apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published