$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
I had trouble setting up a Windows CE project to build on our new Jenkins server. These gists are meant to help you resolve "error MSB4018: The "GetDeviceFrameworkPath" task failed unexpectedly."
- Make sure that the machine performing the build has the .NET Compact Framework Redistributable
- Add the registries from
Windows-CE-Build.reg
to the machine (by downloading and double-clicking the file)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### |
- Enable Windows Feature named '.NET Framework 3.5 (includes .NET 2.0 and 3.0)'.
- .NET Compact Framework 3.5 Redistributable: https://www.microsoft.com/en-us/download/details.aspx?id=65
- Power Toys for .NET Compact Framework 3.5: https://www.microsoft.com/en-us/download/details.aspx?id=13442
- Copy files and directories from 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5';
- Copy files from 'C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\*' to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\CompactFramework' directory;
- Create 'RedistList' directory inside created 'CompactFramework' directory;
- Create 'FrameworkList.xml' inside 'RedistList' directory and type the following:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can use Visual Studio 2015 to compile to Compact Framework 3.5 by following the instructions below: | |
- Install the '.NET Compact Framework 3.5 Redistributable'; | |
- Copy files from '*C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE*'; | |
- Paste the files at '*C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\\.NETFramework\v3.5\Profile\CompactFramework*' directory; | |
- Create a directory named '*RedistList*'; | |
- Create a file named '*FrameworkList.xml*' at '*RedistList*' directory; | |
- Set the follwing content to the file created: | |
<?xml version="1.0" encoding="utf-8"?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is the GitLab-CI file for building the image | |
variables: | |
CURRENT_IMAGE_TAG: rfid-applied/netcf35_build_environment:dev | |
stages: | |
- dockerize | |
dockerize: | |
stage: dockerize | |
script: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- First we find all the files in the "playlist" directory | |
PlaylistFiles = dir.get('media/Playlists/') | |
-- Next we make a table that's going to contain all our playlist names | |
PlaylistNames = {} | |
-- Next we go through the list of playlist files we've found | |
for _,f in ipairs(PlaylistFiles) do | |
-- Open the file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Notes: | |
- Remove any data:image/type; prefix | |
- Legend = '' prevents the Style JSON from appearing as the button label | |
- DrawChrome hides the button itself and just displays the image. | |
]] | |
Controls['Artwork'].Style = json.encode({ | |
DrawChrome = false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Q-Sys Redis Client | |
Author: Michael Goodyear | |
Email: michael@locimation.com | |
Version: 1.1 | |
Copyright 2020 Locimation Pty Ltd | |
Permission is hereby granted, free of charge, | |
to any person obtaining a copy of this software | |
and associated documentation files (the "Software"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S = TcpSocket.New(); | |
S.EventHandler = print; | |
S:Connect(<HOST>, 80); | |
S.ReconnectTimeout = 0; | |
function randomWebSocketKey() | |
return Crypto.Base64Encode(('x'):rep(16):gsub('.', function() return string.char(math.random(0,255)) end)); | |
end; | |
S.Connected = function() |
OlderNewer