Azure / Azure/Azure-Functions

After create an isolated Azure Function using the Blob trigger, the package version is incorrect and there is an error on the command line after F5

Open
#2,405 10 comments 1 reaction 1 assignee Claimed by @VineethReyya View on GitHub
bug Needs: Attention :wave:
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

**Azure DevOps work item**: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1877142

**Testcases Affected:**
[Azure Functions Tooling E2E](https://github.com/aspnet/Tooling-ManualTests/blob/rel/17.4/E2EWalkthroughs/VS/AzureFunction/AzureFunction.md)~ .NET 7.0/6.0 Isolated. and .NET framework isolated v4

**Platform**
- [x] Windows
- [ ] Linux
- [ ] Mac

**INSTALL STEPS**
1. Clean machine: Win11x64 ENU 21H2
2. Install Dev17.7.3 from https://aka.ms/vs/17/release/VS_Enterprise.exe

- Web workload
- Check runtime 7.0/6.0 runtime under IC tab

**REPRO STEPS​ :**
1. New > Azure Function> .NET 7.0 Isolated > Select "Blob trigger" >give a connection string setting name >Create> Connect to dependency >Storage Azurite emulator(Local)>Next>Finish.
2. Restart vs, recreate Azure Function project according to the first step, right click project to open "Edit Project File", the package version is incorrect, F5 to run the project.

If it does not reappear, you can continue to follow:
- Install "[Microsoft Azure Storage Explorer](https://azure.microsoft.com/en-us/products/storage/storage-explorer/)" on you test VM,and Sign in with Azure.
- Put the breakpoint in the method of function1.cs, F5 to run the project,
- Open "Microsoft Azure Storage Explorer" which you just installed. Expand "Emulator & Attached"> Storage Accounts> (Emulator-Default Ports)(Key)> Blob Containers, right-click Blob Containers > Create Blob Container, type name "samples-workitems".
- Click on the newly created blob and hit the upload button on the top right. Upload any file and hit Open.

**ACTUAL**
The package version is incorrect
![image](https://github.com/Azure/Azure-Functions/assets/108652804/25192d37-ae35-454b-a6e1-718f36ed9068)

There are errors in the command window when you do F5
![image](https://github.com/Azure/Azure-Functions/assets/108652804/3a6d0a2f-0efb-4f35-9266-73fd0b36972f)

**EXPECTED**
The package version is correct
![image](https://github.com/Azure/Azure-Functions/assets/108652804/77e3b04e-3807-4103-b5d0-01f903d63a37)

There is no error message when you do F5
![image](https://github.com/Azure/Azure-Functions/assets/108652804/a3025f3d-49e3-4f97-8235-9932aabdc08c)

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.