Comments (9)
so I added to build.cake
#addin "YamlDotNet"
and to tools/packages.config
<package id="YamlDotNet" version="4.2.1" />
Seems to give work around. Stupid binding redirect nonsense.
from packertemplates.
same issue here. You come up with a fix?
from packertemplates.
Yeah I added YamlDotNet as a reference to cake then modified the packages.config under tools to pin to 4.2.1
Cake should use paket 😊 but that's another topic.
from packertemplates.
Thank you. I've basically merged your changes as well as those in Pull Request 10 and 12. I'd love to continue to contribute to the project as well. I'm going to continue to develop the project in my fork for now. johnrizzo1/PackerTemplates. I'll push my work shortly.
from packertemplates.
@TheAngryByrd can you post your build.supported_os.yaml?
from packertemplates.
It's just the yaml from the initial clone.
---
- Name: Windows2012R2Core
osName: win2012r2core
guestOSType: Windows2012_64
isoURL: http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
isoChecksum: 849734f37346385dac2c101e4aacba4626bb141c
- Name: Windows2012R2
osName: win2012r2
guestOSType: Windows2012_64
isoChecksum: 849734f37346385dac2c101e4aacba4626bb141c
isoURL: http://care.dlservice.microsoft.com/dl/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO
- Name: Windows2016StdCore
osName: win2016stdcore
guestOSType: Windows2012_64
isoChecksum: 3bb1c60417e9aeb3f4ce0eb02189c0c84a1c6691
isoURL: http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO
- Name: Windows2016
osName: win2016std
guestOSType: Windows2012_64
isoChecksum: 3bb1c60417e9aeb3f4ce0eb02189c0c84a1c6691
isoURL: http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO
# - Name: Windows10
# osName: win10
# guestOSType: Windows10_64
# isoChecksum: 56ab095075be28a90bc0b510835280975c6bb2ce
# isoURL: http://care.dlservice.microsoft.com/dl/download/C/3/9/C399EEA8-135D-4207-92C9-6AAB3259F6EF/10240.16384.150709-1700.TH1_CLIENTENTERPRISEEVAL_OEMRET_X64FRE_EN-US.ISO
from packertemplates.
Odd. Mine is the same but I get this error...
❯ ./build.ps1
Preparing to run build script...
Running build script...
Analyzing build script...
Processing build script...
Installing addins...
Compiling build script...
Error: One or more errors occurred.
Your yaml is invalid.
I added in some debugging and I get this output
YAML path ./build.supported_os.yaml OS Windows2016StdCore - Matched OS
Here are my changes to add some debugging.
public OSToBuild LoadYAMLConfig(string yaml_path, string os)
{
//OSToBuild os_to_build_properties;
string matchedOs = "";
try
{
var oses = DeserializeYamlFromFile<List<OSToBuild>> (yaml_path);
// check if the OS the user passed exists
bool matchingOS = oses.Any(n => n.Name == os);
Information("oses: " + oses);
if (matchingOS == true)
{
// return the matching os to build
return oses.Where(n => n.Name == os).First();
}
else
{
string exceptionMsg = String.Format("Could not find a matching operating system in {0}. You passed in: {1}", yaml_path, os);
throw new System.ArgumentException(exceptionMsg);
}
}
catch
{
string msg = String.Format("Your yaml is invalid. YAML path {0} OS {1} - Matched OS {2}", yaml_path, os, matchedOs);
throw new System.ArgumentException(msg);
}
}
from packertemplates.
Thanks... That worked. Again, I'll add this to my repo so that it is all captured somewhere.
from packertemplates.
I have added this fix (8ca65c4) to the repo, thanks @TheAngryByrd
from packertemplates.
Related Issues (11)
- install_windows_updates.ps1 dropbox file HOT 1
- Ability to Selectively apply updates HOT 1
- cake dependencies need updating - build.ps1 doesn't run
- Add exit code 11 to valid_exit_codes in windows update builder
- Error: hyperv-iso: Error shutting down VM: PowerShell error: Hyper-V\Stop-VM : Failed to stop. HOT 1
- Windows Updates insecure
- Windows 2016 Dataceneter Core HOT 3
- install_oracle_guest_additions.ps1 file name not found HOT 2
- VRam for virtualbox? HOT 2
- Taking PRs? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packertemplates.