question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to publish locally on the Dev branch

See original GitHub issue

Hi team,

I’m following the instructions on my local machine trying to get a PoSH function running locally before running it on the cloud. I’m having issues with the publish process on the DEV branch.

Settings: OS: MacOS High Sierra .NET Core Version: 2.1.4 PoSH version: 6.1.0

Installed .NET Core and PoSH via HomeBrew. I can verify that both exist and run as expected. However, when I run dotnet publish I get a compilation error:

~/Projects/azure-functions-powershell-worker  dev ✔                                                                                    
▶ dotnet publish
Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 17.07 ms for /Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj.
  Restore completed in 64.85 ms for /Users/christosmatskas/Projects/azure-functions-powershell-worker/test/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj.
  Restore completed in 17.32 ms for /Users/christosmatskas/Projects/azure-functions-powershell-worker/test/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj.
FunctionLoader.cs(8,23): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Logging/ILogger.cs(7,34): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Logging/RpcLogger.cs(10,34): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Logging/RpcLogger.cs(9,23): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Messaging/MessagingStream.cs(11,23): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
PowerShell/PowerShellManager.cs(16,34): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
PowerShell/PowerShellManager.cs(14,23): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
PowerShell/StreamHandler.cs(7,34): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
RequestProcessor.cs(14,23): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Utility/ExecutionTimer.cs(9,34): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Utility/TypeExtensions.cs(12,23): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Worker.cs(13,23): error CS0234: The type or namespace name 'WebJobs' does not exist in the namespace 'Microsoft.Azure' (are you missing an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
FunctionLoader.cs(26,28): error CS0246: The type or namespace name 'FunctionLoadRequest' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
FunctionLoader.cs(43,29): error CS0246: The type or namespace name 'RpcFunctionMetadata' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
FunctionLoader.cs(40,44): error CS0246: The type or namespace name 'BindingInfo' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
FunctionLoader.cs(41,44): error CS0246: The type or namespace name 'BindingInfo' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
PowerShell/PowerShellManager.cs(105,19): error CS0246: The type or namespace name 'ParameterBinding' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Utility/TypeExtensions.cs(19,62): error CS0246: The type or namespace name 'RpcHttp' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Utility/TypeExtensions.cs(64,45): error CS0246: The type or namespace name 'TypedData' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Utility/TypeExtensions.cs(95,23): error CS0246: The type or namespace name 'RpcException' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Utility/TypeExtensions.cs(105,16): error CS0246: The type or namespace name 'RpcHttp' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Utility/TypeExtensions.cs(132,23): error CS0246: The type or namespace name 'TypedData' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
RequestProcessor.cs(67,60): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
RequestProcessor.cs(67,18): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
RequestProcessor.cs(94,62): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
RequestProcessor.cs(94,18): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
RequestProcessor.cs(126,60): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
RequestProcessor.cs(126,18): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Messaging/MessagingStream.cs(36,16): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Messaging/MessagingStream.cs(42,38): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Messaging/MessagingStream.cs(18,42): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]
Messaging/MessagingStream.cs(18,60): error CS0246: The type or namespace name 'StreamingMessage' could not be found (are you missing a using directive or an assembly reference?) [/Users/christosmatskas/Projects/azure-functions-powershell-worker/src/Microsoft.Azure.Functions.PowerShellWorker.csproj]

Something missing?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cmatskascommented, Sep 30, 2018

Should we move this thread to #65 and close this when the docs get updated?

0reactions
TylerLeonhardtcommented, Sep 30, 2018

Updated the docs in #66! Thanks @cmatskas 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub "Failed to publish this branch" error on Windows
In Windows, right click on your repository → click on Open a shell here. You will see a command prompt. Type git push...
Read more >
Local branch cannot be published to github · Issue #3643
Open an existing private repository. Create a new branch; Make some changes; Commit those changes; Push "Publish Branch". Expected behavior: ...
Read more >
<FIXED> Unable to Push existing branch to GitLab
Hi, I've installed the GitLab extension for VSCode and created a new branch in Git locally. I am being prompted to 'Publish Branch'...
Read more >
Unable to push the local branch to remote origin
while running the following command. git push --set-upstream origin <my-new-branch>. then I am getting the following error:.
Read more >
Branch deploy is not working at all
I have set up a Build Hook to get my Production branch to auto deploy and I'm wondering if my Staging branch won't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found