Skip to content

Commit

Permalink
Update nanoCLR test solution (#406)
Browse files Browse the repository at this point in the history
- add reference to Windows.Devices.Spi

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
  • Loading branch information
josesimoes authored Jul 24, 2017
1 parent b71a80d commit 1acd7af
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions targets/os/win32/nanoCLR/CLRStartup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ struct Settings
vec.push_back(L"-load");
vec.push_back(L"..\\packages\\nanoFramework.Windows.Devices.Gpio.1.0.0-preview006\\lib\\Windows.Devices.Gpio.pe");

// grab Windows.Devices.Spi.pe from the packages folder (it has to be there because the NF.TestApplication has just build)
// ************************************************************************* //
// just need to update the path on the package folder as the version changes //
// ************************************************************************* //
vec.push_back(L"-load");
vec.push_back(L"..\\packages\\nanoFramework.Windows.Devices.Spi.1.0.0-preview003\\lib\\Windows.Devices.Spi.pe");


//vec.push_back(L"-load");
//vec.push_back(L"C:\\Program Files (x86)\\Microsoft .NET Micro Framework\\v4.4\\Assemblies\\le\\Microsoft.SPOT.Native.pe");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
<Private>True</Private>
<SpecificVersion>True</SpecificVersion>
</Reference>
<Reference Include="Windows.Devices.Spi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6df87852110734f7">
<HintPath>..\..\packages\nanoFramework.Windows.Devices.Spi.1.0.0-preview003\lib\Windows.Devices.Spi.dll</HintPath>
<Private>True</Private>
<SpecificVersion>True</SpecificVersion>
</Reference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand Down
1 change: 1 addition & 0 deletions targets/os/win32/netnf/TestApplication/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<packages>
<package id="nanoFramework.CoreLibrary" version="1.0.0-preview022" />
<package id="nanoFramework.Windows.Devices.Gpio" version="1.0.0-preview006" />
<package id="nanoFramework.Windows.Devices.Spi" version="1.0.0-preview003" />
</packages>
1 change: 1 addition & 0 deletions targets/os/win32/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<packages>
<package id="nanoFramework.CoreLibrary" version="1.0.0-preview022" />
<package id="nanoFramework.Windows.Devices.Gpio" version="1.0.0-preview006" />
<package id="nanoFramework.Windows.Devices.Spi" version="1.0.0-preview003" />
</packages>

0 comments on commit 1acd7af

Please sign in to comment.