Skip to content

Commit 8918b78

Browse files
authored
Merge pull request #1429 from BigMorty/changetroubleshooting
Change troubleshooting page - remove warmup info & add info on how to use a library project
2 parents ab59471 + 9c14292 commit 8918b78

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

connected-environment/troubleshooting.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,14 @@ Install the [VS Code extension for Connected Environment](get-started-netcore-01
4646
**Reason:** An Azure portal experience for Connected Environment is not yet ready for preview.
4747

4848

49-
## Error during warmup displayed in Visual Studio Output Window
50-
An error occurred during warmup for project '<projectname>'
49+
## The type or namespace name 'MyLibrary' could not be found
5150

52-
**Reason:** This occurs when Visual Studio attempts to warmup a Connected Environment that has not yet finished being created, or is in an incomplete or error state. You will often see this right after you have started to create a new Connected Environment.
51+
**Reason:** The build context is at the project/service level by default, therefore a library project you are using will not be found.
5352

5453
**Try:**
55-
If you have just started the creation of a new Connected Environment, wait until it is successfully created before attempting to F5 or Ctrl+F5 your project/service. If this is a Connected Environment you created more than 15 minutes ago, it is likely in a bad state. You can try creating a new environment and wait for it to successfully be created.
54+
What needs to be done is:
55+
1. Modify the vsce.yaml file to set the build context to the solution level.
56+
2. Modify the Dockerfile and Dockerfile.develop files to refer to the csproj files correctly, relative to the new build context.
57+
3. Place a .dockerignore file beside the .sln file and modify as needed.
5658

57-
You can see if your Connected Environment is still being created by *hovering your cursor* over the **Background tasks** icon in the bottom left corner of the status bar.
58-
![](images/BackgroundTasks.png)
59-
60-
You can also see if a Connected Environment you recently created from within Visual Studio has been created sucessfully by *clicking* on the **Background tasks** icon in the bottom left corner of the status bar.
61-
![](images/BackgroundTasks2.png)
59+
You can find an example at https://github.com/sgreenmsft/buildcontextsample

0 commit comments

Comments
 (0)