-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…oad templates. Call the mock SDK API from the package Microsoft.Internal.DotNet.MockTemplateLocator.
- Loading branch information
Showing
6 changed files
with
127 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\common\Build.ps1""" -build -restore -pack -test %*" | ||
exit /b %ErrorLevel% | ||
exit /b %ErrorLevel% |
24 changes: 24 additions & 0 deletions
24
src/Microsoft.TemplateEngine.Cli/HiveSynchronizationException.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.TemplateEngine.Cli | ||
{ | ||
public sealed class HiveSynchronizationException : Exception | ||
{ | ||
public HiveSynchronizationException(string message, string version) | ||
: base(message) | ||
{ | ||
SdkVersion = version; | ||
} | ||
|
||
public HiveSynchronizationException(string message, string version, Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
SdkVersion = version; | ||
} | ||
|
||
public string SdkVersion { get; } | ||
} | ||
} |
24 changes: 22 additions & 2 deletions
24
src/Microsoft.TemplateEngine.Cli/LocalizableStrings.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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 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