Skip to content

Commit edc4d08

Browse files
committed
Updated NetworkTables to latest and created chocolatey package spec.
1 parent 7dcc3e1 commit edc4d08

17 files changed

+138
-15
lines changed

DotNetDash.CameraViews/DotNetDash.CameraViews.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<Private>True</Private>
4444
</Reference>
4545
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
46-
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
46+
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
4747
<Private>True</Private>
4848
</Reference>
4949
<Reference Include="Nito.AsyncEx.Coordination, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">

DotNetDash.CameraViews/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package id="AForge" version="2.2.5" targetFramework="net46" />
44
<package id="AForge.Video" version="2.2.5" targetFramework="net46" />
55
<package id="AForge.Video.DirectShow" version="2.2.5" targetFramework="net46" />
6-
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
6+
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
77
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
88
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
99
<package id="Nito.Collections.Deque" version="1.0.0" targetFramework="net46" />

DotNetDash.Core/DotNetDash.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</PropertyGroup>
3333
<ItemGroup>
3434
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
35-
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
35+
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
3636
<Private>True</Private>
3737
</Reference>
3838
<Reference Include="Hellosam.Net.Collections, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">

DotNetDash.Core/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
3+
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
44
<package id="hellosam.net.collections" version="1.0.0" targetFramework="net46" />
55
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
66
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />

DotNetDash.LiveWindow/DotNetDash.LiveWindow.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</PropertyGroup>
3232
<ItemGroup>
3333
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
34-
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
34+
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
3535
<Private>True</Private>
3636
</Reference>
3737
<Reference Include="Hellosam.Net.Collections, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">

DotNetDash.LiveWindow/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
3+
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
44
<package id="hellosam.net.collections" version="1.0.0" targetFramework="net46" />
55
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
66
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />

DotNetDash.SpeedController/DotNetDash.SpeedController.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</PropertyGroup>
3232
<ItemGroup>
3333
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
34-
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
34+
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
3535
<Private>True</Private>
3636
</Reference>
3737
<Reference Include="Nito.AsyncEx.Coordination, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">

DotNetDash.SpeedController/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
3+
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
44
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
55
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
66
<package id="Nito.Collections.Deque" version="1.0.0" targetFramework="net46" />

DotNetDash.Test/DotNetDash.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</PropertyGroup>
3232
<ItemGroup>
3333
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
34-
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
34+
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
3535
<Private>True</Private>
3636
</Reference>
3737
<Reference Include="Nito.AsyncEx.Coordination, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">

DotNetDash.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
3+
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
44
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
55
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
66
<package id="Nito.Collections.Deque" version="1.0.0" targetFramework="net46" />

DotNetDash.XamlPlugins/DotNetDash.XamlPlugins.proj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
<XamlPlugin Include="Gyro.xaml" />
1212
</ItemGroup>
1313
<ItemGroup>
14-
<XamlPlugin Include="Command.xaml">
15-
<SubType>Designer</SubType>
16-
</XamlPlugin>
14+
<XamlPlugin Include="Command.xaml" />
1715
</ItemGroup>
1816
<Target Name="Build">
1917
<Copy SourceFiles="@(XamlPlugin)" DestinationFolder="../bin/$(Configuration)/Plugins/XAML Plugins" SkipUnchangedFiles="true" />

DotNetDash/DotNetDash.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<DefineConstants>TRACE</DefineConstants>
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
36+
<UseVSHostingProcess>false</UseVSHostingProcess>
3637
</PropertyGroup>
3738
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CoreDebug|AnyCPU'">
3839
<DebugSymbols>true</DebugSymbols>
@@ -47,7 +48,7 @@
4748
</PropertyGroup>
4849
<ItemGroup>
4950
<Reference Include="FRC.NetworkTables, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
50-
<HintPath>..\packages\FRC.NetworkTables.3.1.4-rc2\lib\net46\FRC.NetworkTables.dll</HintPath>
51+
<HintPath>..\packages\FRC.NetworkTables.3.1.6\lib\net46\FRC.NetworkTables.dll</HintPath>
5152
<Private>True</Private>
5253
</Reference>
5354
<Reference Include="Hellosam.Net.Collections, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">

DotNetDash/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="FRC.NetworkTables" version="3.1.4-rc2" targetFramework="net46" />
3+
<package id="FRC.NetworkTables" version="3.1.6" targetFramework="net46" />
44
<package id="hellosam.net.collections" version="1.0.0" targetFramework="net46" />
55
<package id="Nito.AsyncEx.Coordination" version="1.0.2" targetFramework="net46" />
66
<package id="Nito.AsyncEx.Tasks" version="1.0.1" targetFramework="net46" />
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Read this before creating packages: https://chocolatey.org/docs/create-packages -->
3+
<!-- It is especially important to read the above link to understand additional requirements when publishing packages to the community feed aka dot org (https://chocolatey.org/packages). -->
4+
5+
<!-- Test your packages in a test environment: https://github.com/chocolatey/chocolatey-test-environment -->
6+
7+
<!--
8+
This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Reference. Chocolatey uses a special version of NuGet.Core that allows us to do more than was initially possible. As such there are certain things to be aware of:
9+
10+
* the package xmlns schema url may cause issues with nuget.exe
11+
* Any of the following elements can ONLY be used by choco tools - projectSourceUrl, docsUrl, mailingListUrl, bugTrackerUrl, packageSourceUrl, provides, conflicts, replaces
12+
* nuget.exe can still install packages with those elements but they are ignored. Any authoring tools or commands will error on those elements
13+
-->
14+
15+
<!-- You can embed software files directly into packages, as long as you are not bound by distribution rights. -->
16+
<!-- * If you are an organization making private packages, you probably have no issues here -->
17+
<!-- * If you are releasing to the community feed, you need to consider distribution rights. -->
18+
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
19+
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
20+
<metadata>
21+
<!-- == PACKAGE SPECIFIC SECTION == -->
22+
<!-- This section is about this package, although id and version have ties back to the software -->
23+
<!-- id is lowercase and if you want a good separator for words, use '-', not '.'. Dots are only acceptable as suffixes for certain types of packages, e.g. .install, .portable, .extension, .template -->
24+
<!-- If the software is cross-platform, attempt to use the same id as the debian/rpm package(s) if possible. -->
25+
<id>dotnetdash</id>
26+
<!-- version should MATCH as closely as possible with the underlying software -->
27+
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages -->
28+
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version number is final, that is considered a released version and not a prerelease. -->
29+
<version>1.0.0</version>
30+
<packageSourceUrl>https://github.com/robotdotnet/DotNetDash/releases</packageSourceUrl>
31+
<!-- owners is a poor name for maintainers of the package. It sticks around by this name for compatibility reasons. It basically means you. -->
32+
<owners>jkoritzinsky</owners>
33+
<!-- ============================== -->
34+
35+
<!-- == SOFTWARE SPECIFIC SECTION == -->
36+
<!-- This section is about the software itself -->
37+
<title>DotNetDash</title>
38+
<authors>Jeremy Koritzinsky, RobotDotNet</authors>
39+
<!-- projectUrl is required for the community feed -->
40+
<projectUrl>https://github.com/robotdotnet/DotNetDash</projectUrl>
41+
<!--<iconUrl>http://cdn.rawgit.com/__REPLACE_YOUR_REPO__/master/icons/dotnetdash.png</iconUrl>-->
42+
<copyright>2016 Robot Dot Net</copyright>
43+
<!-- If there is a license Url available, it is is required for the community feed -->
44+
<licenseUrl>https://github.com/robotdotnet/DotNetDash/blob/master/LICENSE.txt</licenseUrl>
45+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
46+
<projectSourceUrl>https://github.com/robotdotnet/DotNetDash</projectSourceUrl>
47+
<!--<docsUrl>At what url are the software docs located?</docsUrl>-->
48+
<!--<mailingListUrl></mailingListUrl>-->
49+
<bugTrackerUrl>https://github.com/robotdotnet/DotNetDash/issues</bugTrackerUrl>
50+
<tags>dotnetdash frc robotdotnet smartdashboard</tags>
51+
<summary>A .NET based replacement for SmartDashboard provided by RobotDotNet</summary>
52+
<description> A NetworkTables client that creates a dashboard-like view similar to SmartDashboard and SmartDashboard 2.0 SFX. </description>
53+
<releaseNotes>Initial Release for the 2017 FIRST Robotics Competition Season.</releaseNotes>
54+
<!-- =============================== -->
55+
56+
<!-- Specifying dependencies and version ranges? https://docs.nuget.org/create/versioning#specifying-version-ranges-in-.nuspec-files -->
57+
<!--<dependencies>
58+
<dependency id="" version="__MINIMUM_VERSION__" />
59+
<dependency id="" version="[__EXACT_VERSION__]" />
60+
<dependency id="" version="[_MIN_VERSION_INCLUSIVE, MAX_VERSION_INCLUSIVE]" />
61+
<dependency id="" version="[_MIN_VERSION_INCLUSIVE, MAX_VERSION_EXCLUSIVE)" />
62+
<dependency id="" />
63+
<dependency id="chocolatey-uninstall.extension" />
64+
</dependencies>-->
65+
<!-- chocolatey-uninstall.extension - If supporting 0.9.9.x (or below) and including a chocolateyUninstall.ps1 file to uninstall an EXE/MSI, you probably want to include chocolatey-uninstall.extension as a dependency. Please verify whether you are using a helper function from that package. -->
66+
67+
<!--<provides>NOT YET IMPLEMENTED</provides>-->
68+
<!--<conflicts>NOT YET IMPLEMENTED</conflicts>-->
69+
<!--<replaces>NOT YET IMPLEMENTED</replaces>-->
70+
<dependencies>
71+
<dependency id="dotnet4.6" />
72+
</dependencies>
73+
</metadata>
74+
<files>
75+
<!-- this section controls what actually gets packaged into the Chocolatey package -->
76+
<file src="tools\**" target="tools" />
77+
<!--Building from Linux? You may need this instead: <file src="tools/**" target="tools" />-->
78+
</files>
79+
</package>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
RobotDotNet code license
2+
3+
Copyright (c) 2015-2016 RobotDotNet
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
* Neither the name of RobotDotNet nor the
13+
names of its contributors may be used to endorse or promote products
14+
derived from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY ROBOTDOTNET AND CONTRIBUTORS``AS IS'' AND ANY
17+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
19+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ROBOTPY OR CONTRIBUTORS BE LIABLE FOR
20+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
$packageName = 'dotnetdash'
2+
$url = "https://github.com/RobotDotNet/DotNetDash/releases/download/$env:chocolateyPackageVersion/DotNetDash.zip"
3+
$unzipLocation = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
4+
$desktopPath = [Environment]::GetFolderPath("Desktop")
5+
$lnkPath = $desktopPath + "\DotNetDash.lnk"
6+
$exePath = $unzipLocation + "\" + $packageName + ".exe"
7+
8+
Write-Host "Uninstalling previous version"
9+
Remove-Item $unzipLocation -Force -Recurse -Exclude $unzipLocation\logs,$unzipLocation\Plugins -ErrorAction SilentlyContinue
10+
Write-Host "Done"
11+
12+
Install-ChocolateyZipPackage $packageName $url $unzipLocation
13+
Install-ChocolateyShortcut -shortcutFilePath $lnkPath -targetPath $exePath
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$desktopPath = [Environment]::GetFolderPath("Desktop")
2+
$lnkPath = $desktopPath + "\DotNetDash.lnk"
3+
4+
If (Test-Path $lnkPath)
5+
{
6+
Remove-Item $lnkPath
7+
}

0 commit comments

Comments
 (0)