cake-build / cake-build/bakery

duplicated .cake file

Open
#77 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
30
Forks
11
PR merge metrics
No merged PRs in 30d

Description

**Using VsCode 1.17 with C# 1.13.0-beta4**

I added the line
```cake
#load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease
```
in a `.cake` file.

Running it the first time worked.

After that, I continued to edit the file.
When I hit Ctrl+Space to get intellisense I noticed another directory of `Cake.Recipe` was downloaded.

Before:
![image](https://user-images.githubusercontent.com/9786571/32300531-959e8a86-bf62-11e7-8bfc-cbe43b21fc77.png)

After:
![image](https://user-images.githubusercontent.com/9786571/32300561-be031a5a-bf62-11e7-82dc-af27694dced8.png)

The complete cake script:
```cake
#load nuget:https://www.myget.org/F/cake-contrib/api/v2?package=Cake.Recipe&prerelease

Environment.SetVariableNames();

BuildParameters.SetParameters(context: Context,
buildSystem: BuildSystem,
sourceDirectoryPath: "./src",
title: "Cake.Openshift",
repositoryOwner: "cake-contrib",
repositoryName: "Cake.Openshift",
appVeyorAccountName: "cakecontrib");

BuildParameters.PrintParameters(Context);

ToolSettings.SetToolSettings(context: Context);

Build.RunDotNetCore();
```

It downloaded another copy of `Cake.Recipe` only when my cursor was in the method `BuildParameters.SetParameters` to get more details about more arguments for the method

Then I get the following error:
![image](https://user-images.githubusercontent.com/9786571/32300964-84507030-bf64-11e7-9868-ca9e2a217bd4.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.