Skip to content

Commit

Permalink
All-in-one NuGet task PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelquintero committed May 31, 2017
1 parent dafc900 commit f51367f
Show file tree
Hide file tree
Showing 33 changed files with 186 additions and 149 deletions.
2 changes: 1 addition & 1 deletion Tasks/NuGetCommand/Common/INuGetCommandOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {NuGetEnvironmentSettings} from "./NuGetToolRunner";
import { NuGetEnvironmentSettings } from "./NuGetToolRunner";

export interface INuGetCommandOptions {
/** settings used to initialize the environment NuGet.exe is invoked in */
Expand Down
13 changes: 7 additions & 6 deletions Tasks/NuGetCommand/Common/NuGetConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,24 @@ export class NuGetConfigHelper {

public ensureTempConfigCreated() {
// save nuget config file to agent build directory
console.log("save nuget.config to temp config file");
if (!(fs.existsSync(this.tempNugetConfigDir))) {
fs.mkdirSync(this.tempNugetConfigDir);
console.log(tl.loc("Info_SavingTempConfig"));

if (!tl.exist(this.tempNugetConfigDir)) {
tl.mkdirP(this.tempNugetConfigDir);
}

this.tempNugetConfigPath = path.join(this.tempNugetConfigDir, this.tempNugetConfigFileName);

if (!fs.existsSync(this.tempNugetConfigPath))
if (!tl.exist(this.tempNugetConfigPath))
{
if (this.nugetConfigPath) {
// don't use cp as that copies the read-only flag, and tfvc sets that on files
let content = fs.readFileSync(this.nugetConfigPath);
fs.writeFileSync(this.tempNugetConfigPath, content);
tl.writeFile(this.tempNugetConfigPath, content);
}
else {
// small file, use writeFileSync
fs.writeFileSync(this.tempNugetConfigPath, "<configuration/>");
tl.writeFile(this.tempNugetConfigPath, "<configuration/>");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Tasks/NuGetCommand/Common/NuGetToolRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function getNuGetQuirksAsync(nuGetExePath: string): Promise<NuGetQu
// when using the credential provider.
// Unfortunately, on on-premises TFS, we must use credential provider to override NTLM auth with the build
// identity's token.
// Therefore, we are enabling credential provider on on-premises and disabling it on hosted. We allow for test
// Therefore, we are enabling credential provider on on-premises and disabling it on hosted (only when the version of NuGet does not support it). We allow for test
// instances by an override variable.

export function isCredentialProviderEnabled(quirks: NuGetQuirks): boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"loc.instanceNameFormat": "NuGet $(command)",
"loc.group.displayName.restoreAuth": "Feeds and authentication",
"loc.group.displayName.restoreAdvanced": "Advanced",
"loc.group.displayName.pushAuth": "Destination feed and authentication",
"loc.group.displayName.pushAdvanced": "Advanced",
"loc.group.displayName.packOptions": "Pack options",
"loc.group.displayName.packAdvanced": "Advanced",
Expand All @@ -14,9 +13,9 @@
"loc.input.label.solution": "Path to solution, packages.config, or project.json",
"loc.input.help.solution": "The path to the solution, packages.config, or project.json file that references the packages to be restored.",
"loc.input.label.selectOrConfig": "Feeds to use",
"loc.input.help.selectOrConfig": "You can either select feeds from VSTS and/or NuGet.org here, or commit a nuget.config file to your source code repository and set its path here.",
"loc.input.help.selectOrConfig": "You can either select a feed from VSTS and/or NuGet.org here, or commit a nuget.config file to your source code repository and set its path here.",
"loc.input.label.feedRestore": "Use packages from this VSTS/TFS feed",
"loc.input.help.feedRestore": "Include the selected feeds in the generated NuGet.config. You must have Package Management installed and licensed to select a feed here.",
"loc.input.help.feedRestore": "Include the selected feed in the generated NuGet.config. You must have Package Management installed and licensed to select a feed here.",
"loc.input.label.includeNuGetOrg": "Use packages from NuGet.org",
"loc.input.help.includeNuGetOrg": "Include NuGet.org in the generated NuGet.config.",
"loc.input.label.nugetConfigPath": "Path to NuGet.config",
Expand Down Expand Up @@ -47,7 +46,7 @@
"loc.input.label.outputDir": "Package Folder",
"loc.input.help.outputDir": "Folder where packages will be created. If empty, packages will be created alongside the csproj or nuspec file.",
"loc.input.label.versioningScheme": "Automatic package versioning",
"loc.input.help.versioningScheme": "Cannot be used with include referenced projects. If you choose 'Use the date and time', this will generate a [SemVer](http://semver.org/spec/v1.0.0.html)-compliant version formatted as `X.Y.Z-ci-datetime` where you choose X, Y, and Z.\n\nIf you choose 'Use an environment variable', you must select an environment variable and ensure it contains the version number you want to use.\n\nIf you choose 'Use the build number', this will use the build number to version you package. **Note:** Under General set the build format to be '[$(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)](https://go.microsoft.com/fwlink/?LinkID=627416)'.",
"loc.input.help.versioningScheme": "Cannot be used with include referenced projects. If you choose 'Use the date and time', this will generate a [SemVer](http://semver.org/spec/v1.0.0.html)-compliant version formatted as `X.Y.Z-ci-datetime` where you choose X, Y, and Z.\n\nIf you choose 'Use an environment variable', you must select an environment variable and ensure it contains the version number you want to use.\n\nIf you choose 'Use the build number', this will use the build number to version your package. **Note:** Under Options set the build number format to be '[$(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)](https://go.microsoft.com/fwlink/?LinkID=627416)'.",
"loc.input.label.includeReferencedProjects": "Include referenced projects",
"loc.input.help.includeReferencedProjects": "Include referenced projects either as dependencies or as part of the package. Cannot be used with automatic package versioning. If a referenced project has a corresponding nuspec file that has the same name as the project, then that referenced project is added as a dependency. Otherwise, the referenced project is added as part of the package. [Learn more](https://docs.nuget.org/consume/command-line-reference#pack-command) at NuGet.org.",
"loc.input.label.versionEnvVar": "Environment variable",
Expand All @@ -59,7 +58,7 @@
"loc.input.label.requestedPatchVersion": "Patch",
"loc.input.help.requestedPatchVersion": "The 'Z' in version [X.Y.Z](http://semver.org/spec/v1.0.0.html)",
"loc.input.label.buildProperties": "Additional build properties",
"loc.input.help.buildProperties": "Semicolon delimited list of properties used to build the package.",
"loc.input.help.buildProperties": "Specifies a list of token=value pairs, separated by semicolons, where each occurrence of $token$ in the .nuspec file will be replaced with the given value. Values can be strings in quotation marks.",
"loc.input.label.verbosityPack": "Verbosity",
"loc.input.help.verbosityPack": "Specifies the amount of detail displayed in the output.",
"loc.input.label.arguments": "Command and arguments",
Expand Down Expand Up @@ -114,5 +113,7 @@
"loc.messages.Warning_ForceNuGetCannotSkipConflicts": "NuGet.exe was forced to be used for publish, if push conflicts occur it will result in a failure.",
"loc.messages.Info_MatchingUrlWasFoundSettingAuth": "Using authentication information for the following URI: ",
"loc.messages.Error_PushNotARegularFile": "%s is not a file. Check the 'Path/Pattern to nupkg' property of the task.",
"loc.messages.Warning_AllowDuplicatesOnlyAvailableHosted": "The 'Allow duplicates to be skipped' option is currently only available on Visual Studio Team Services. If NuGet.exe encounters a conflict, the task will fail."
"loc.messages.Warning_AllowDuplicatesOnlyAvailableHosted": "The 'Allow duplicates to be skipped' option is currently only available on Visual Studio Team Services. If NuGet.exe encounters a conflict, the task will fail.",
"loc.messages.Info_SavingTempConfig": "Saving NuGet.config to a temporary config file.",
"loc.messages.Error_CommandNotRecognized": "The command %s was not recognized."
}
8 changes: 4 additions & 4 deletions Tasks/NuGetCommand/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as path from 'path';
import * as assert from 'assert';
import * as ttm from 'vsts-task-lib/mock-test';

describe('NuGetRestore Suite', function () {
describe('NuGetCommand Suite', function () {
before(() => {
});

Expand Down Expand Up @@ -240,7 +240,7 @@ describe('NuGetRestore Suite', function () {

tr.run()
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version x.y.z-CI-YYYYMMDD-HHMMSS'), 'it should have run NuGet');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version x.y.z-CI-YYYYMMDD-HHMMSS'), 'it should have run NuGet');
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
assert(tr.succeeded, 'should have succeeded');
Expand All @@ -256,7 +256,7 @@ describe('NuGetRestore Suite', function () {

tr.run()
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version XX.YY.ZZ'), 'it should have run NuGet');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version XX.YY.ZZ'), 'it should have run NuGet');
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
assert(tr.succeeded, 'should have succeeded');
Expand All @@ -272,7 +272,7 @@ describe('NuGetRestore Suite', function () {

tr.run()
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version 1.2.3'), 'it should have run NuGet');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version 1.2.3'), 'it should have run NuGet');
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
assert(tr.succeeded, 'should have succeeded');
Expand Down
5 changes: 4 additions & 1 deletion Tasks/NuGetCommand/Tests/PackTests/packBuildNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
},
"which": {},
"exec": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version 1.2.3": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version 1.2.3": {
"code": 0,
"stdout": "NuGet output here",
"stderr": ""
Expand All @@ -34,6 +34,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\foo.nuspec": {
"isFile": true
}
},
"findMatch": {
"foo.nuspec" : ["c:\\agent\\home\\directory\\foo.nuspec"]
}
};
nmh.setAnswers(a);
Expand Down
5 changes: 4 additions & 1 deletion Tasks/NuGetCommand/Tests/PackTests/packEnvVar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
},
"which": {},
"exec": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version XX.YY.ZZ": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version XX.YY.ZZ": {
"code": 0,
"stdout": "NuGet output here",
"stderr": ""
Expand All @@ -35,6 +35,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\foo.nuspec": {
"isFile": true
}
},
"findMatch": {
"foo.nuspec" : ["c:\\agent\\home\\directory\\foo.nuspec"]
}
};
nmh.setAnswers(a);
Expand Down
5 changes: 4 additions & 1 deletion Tasks/NuGetCommand/Tests/PackTests/packPrerelease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
},
"which": {},
"exec": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version x.y.z-CI-YYYYMMDD-HHMMSS": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version x.y.z-CI-YYYYMMDD-HHMMSS": {
"code": 0,
"stdout": "NuGet output here",
"stderr": ""
Expand All @@ -37,6 +37,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\foo.nuspec": {
"isFile": true
}
},
"findMatch": {
"foo.nuspec" : ["c:\\agent\\home\\directory\\foo.nuspec"]
}
};
nmh.setAnswers(a);
Expand Down
6 changes: 4 additions & 2 deletions Tasks/NuGetCommand/Tests/PublishTests/externalFeedNuGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr);

nmh.setNugetVersionInputDefault();
tmr.setInput('command', 'push');
tmr.setInput('searchPattern', 'foo.nupkg');
tmr.setInput('searchPatternPush', 'foo.nupkg');
tmr.setInput('nuGetFeedType', 'external');
tmr.setInput('connectedServiceName', 'externalNuGetFeed');

Expand All @@ -31,6 +31,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\foo.nupkg": {
"isFile": true
}
},
"findMatch": {
"foo.nupkg" : ["c:\\agent\\home\\directory\\foo.nupkg"]
}
};
nmh.setAnswers(a);
Expand All @@ -41,6 +44,5 @@ nmh.registerDefaultNugetVersionMock();
nmh.registerToolRunnerMock();
nmh.registerNugetConfigMock();
nmh.RegisterLocationServiceMocks();
//nmh.registerCommonUtilities();

tmr.run();
5 changes: 4 additions & 1 deletion Tasks/NuGetCommand/Tests/PublishTests/internalFeedNuGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr);

nmh.setNugetVersionInputDefault();
tmr.setInput('command', 'push');
tmr.setInput('searchPattern', 'foo.nupkg');
tmr.setInput('searchPatternPush', 'foo.nupkg');
tmr.setInput('nuGetFeedType', 'internal');
tmr.setInput('feedPublish', 'FeedFooId');
tmr.setInput('allowPackageConflicts', 'false');
Expand All @@ -32,6 +32,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\foo.nupkg": {
"isFile": true
}
},
"findMatch": {
"foo.nupkg" : ["c:\\agent\\home\\directory\\foo.nupkg"]
}
};
nmh.setAnswers(a);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr);

nmh.setNugetVersionInputDefault();
tmr.setInput('command', 'push');
tmr.setInput('searchPattern', 'foo.nupkg');
tmr.setInput('searchPatternPush', 'foo.nupkg');
tmr.setInput('nuGetFeedType', 'internal');
tmr.setInput('feedPublish', 'FeedFooId');
tmr.setInput('allowPackageConflicts', 'false');
Expand All @@ -32,6 +32,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\foo.nupkg": {
"isFile": true
}
},
"findMatch": {
"foo.nupkg" : ["c:\\agent\\home\\directory\\foo.nupkg"]
}
};
nmh.setAnswers(a);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr);

nmh.setNugetVersionInputDefault();
tmr.setInput('command', 'push');
tmr.setInput('searchPattern', 'foo.nupkg');
tmr.setInput('searchPatternPush', 'foo.nupkg');
tmr.setInput('nuGetFeedType', 'internal');
tmr.setInput('feedPublish', 'FeedFooId');
tmr.setInput('allowPackageConflicts', 'true');
Expand All @@ -32,6 +32,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\foo.nupkg": {
"isFile": true
}
},
"findMatch": {
"foo.nupkg" : ["c:\\agent\\home\\directory\\foo.nupkg"]
}
};
nmh.setAnswers(a);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let nmh: util.NugetMockHelper = new util.NugetMockHelper(tmr);

nmh.setNugetVersionInputDefault();
tmr.setInput('command', 'push');
tmr.setInput('searchPattern', 'foo.nupkg');
tmr.setInput('searchPatternPush', 'foo.nupkg');
tmr.setInput('nuGetFeedType', 'internal');
tmr.setInput('feedPublish', 'FeedFooId');
tmr.setInput('allowPackageConflicts', 'false');
Expand All @@ -32,6 +32,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\foo.nupkg": {
"isFile": true
}
},
"findMatch": {
"foo.nupkg" : ["c:\\agent\\home\\directory\\foo.nupkg"]
}
};
nmh.setAnswers(a);
Expand Down
5 changes: 4 additions & 1 deletion Tasks/NuGetCommand/Tests/RestoreTests/multiplesln.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\double\\double.sln": {
"isFile": true
}
}
},
"findMatch": {
"**//*.sln" : ["c:\\agent\\home\\directory\\single.sln", "c:\\agent\\home\\directory\\double\\double.sln"]
}
};
nmh.setAnswers(a);

Expand Down
3 changes: 3 additions & 0 deletions Tasks/NuGetCommand/Tests/RestoreTests/pkgconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\packages.config": {
"isFile": true
}
},
"findMatch": {
"packages.config" : ["c:\\agent\\home\\directory\\packages.config"]
}
};
nmh.setAnswers(a);
Expand Down
3 changes: 3 additions & 0 deletions Tasks/NuGetCommand/Tests/RestoreTests/selectSourceMultiple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
},
"rmRF": {
"c:\\agent\\home\\directory\\tempNuGet_.config": { success: true }
},
"findMatch": {
"packages.config" : ["c:\\agent\\home\\directory\\packages.config"]
}
};
nmh.setAnswers(a);
Expand Down
3 changes: 3 additions & 0 deletions Tasks/NuGetCommand/Tests/RestoreTests/selectSourceNuGetOrg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
},
"rmRF": {
"c:\\agent\\home\\directory\\tempNuGet_.config": { success: true }
},
"findMatch": {
"packages.config" : ["c:\\agent\\home\\directory\\packages.config"]
}
};

Expand Down
3 changes: 3 additions & 0 deletions Tasks/NuGetCommand/Tests/RestoreTests/selectSourceVsts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
},
"rmRF": {
"c:\\agent\\home\\directory\\tempNuGet_.config": { success: true }
},
"findMatch": {
"packages.config" : ["c:\\agent\\home\\directory\\packages.config"]
}
};
nmh.setAnswers(a);
Expand Down
3 changes: 3 additions & 0 deletions Tasks/NuGetCommand/Tests/RestoreTests/singlesln.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\single.sln": {
"isFile": true
}
},
"findMatch": {
"single.sln" : ["c:\\agent\\home\\directory\\single.sln"]
}
};
nmh.setAnswers(a);
Expand Down
3 changes: 3 additions & 0 deletions Tasks/NuGetCommand/Tests/RestoreTests/singleslnConfigFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\tempNuGet_.config": {
"success": true
}
},
"findMatch": {
"single.sln" : ["c:\\agent\\home\\directory\\single.sln"]
}
};
nmh.setAnswers(a);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\single.sln": {
"isFile": true
}
},
"findMatch": {
"single.sln" : ["c:\\agent\\home\\directory\\single.sln"]
}
};
nmh.setAnswers(a);
Expand Down
3 changes: 3 additions & 0 deletions Tasks/NuGetCommand/Tests/RestoreTests/singleslnMono.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"~/myagent/_work/1/s/single.sln": {
"isFile": true
}
},
"findMatch": {
"single.sln" : ["~/myagent/_work/1/s/single.sln"]
}
};
tmr.setAnswers(a);
Expand Down
3 changes: 3 additions & 0 deletions Tasks/NuGetCommand/Tests/RestoreTests/singleslnNoCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"c:\\agent\\home\\directory\\single.sln": {
"isFile": true
}
},
"findMatch": {
"single.sln" : ["c:\\agent\\home\\directory\\single.sln"]
}
};
nmh.setAnswers(a);
Expand Down
Loading

0 comments on commit f51367f

Please sign in to comment.