Skip to content

Commit b529dc1

Browse files
authored
Removing preview labels (#263)
1 parent 5545269 commit b529dc1

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Azure Functions .NET Isolated
22

3-
Welcome to a preview of .NET Isolated in Azure Functions. .NET Isolated provides .NET 5 support in Azure Functions. It runs in an out-of-process language worker that is separate from the Azure Functions runtime. This allows you to have full control over your application's dependencies as well as other new features like a middleware pipeline.
3+
Welcome to .NET Isolated in Azure Functions. .NET Isolated provides .NET 5 support in Azure Functions. It runs in an out-of-process language worker that is separate from the Azure Functions runtime. This allows you to have full control over your application's dependencies as well as other new features like a middleware pipeline.
44

55
A .NET Isolated function app works differently than a .NET Core 3.1 function app. For .NET Isolated, you build an executable that imports the .NET Isolated language worker as a NuGet package. Your app includes a [`Program.cs`](FunctionApp/Program.cs) that starts the worker.
66

7-
As this is a preview, there may be some breaking changes to be expected.
8-
97
## Binding Model
108

119
.NET Isolated introduces a new binding model, slightly different from the binding model exposed in .NET Core 3 Azure Functions. More information can be [found here](https://github.com/Azure/azure-functions-dotnet-worker/wiki/.NET-Worker-bindings). Please review our samples for usage information.
@@ -14,15 +12,13 @@ As this is a preview, there may be some breaking changes to be expected.
1412

1513
The Azure Functions .NET Isolated supports middleware registration, following a model similar to what exists in ASP.NET and giving you the ability to inject logic into the invocation pipeline, pre and post function executions.
1614

17-
While the full middleware registration set of APIs is not yet exposed, middleware registration is supported and we've added an [example](https://github.com/Azure/azure-functions-dotnet-worker-preview/tree/main/FunctionApp/Middleware) to the sample application under the `Middleware` folder.
18-
1915
## Samples
2016

2117
The samples for .NET Isolated using various Azure Functions bindings are available under `samples/SampleApp` ([link](https://github.com/Azure/azure-functions-dotnet-worker/tree/main/samples/SampleApp)).
2218

2319
## Create and run .NET Isolated functions
2420

25-
**Note: VS and VS Code support is on the way. In the meanwhile, please use `azure-functions-core-tools` or the sample projects as a starting point.**
21+
**Note: Visual Studio and Visual Studio Code support is on the way. In the meantime, please use `azure-functions-core-tools` or the sample projects as a starting point.**
2622

2723
### Install .NET 5.0
2824
Download .NET 5.0 [from here](https://dotnet.microsoft.com/download/dotnet/5.0)
@@ -47,7 +43,26 @@ Run `func host start` in the sample app directory.
4743

4844
#### Visual Studio
4945

50-
To debug in Visual Studio, add a `Debugger.Launch()` statement in *Program.cs* ([similar to this](https://github.com/Azure/azure-functions-dotnet-worker/blob/ankitkumarr/core-tools/samples/SampleApp/Program.cs#L17-L19), but uncommented). The process will attempt to launch a debugger before continuing.
46+
>_Release candidate instructions. Requires RC packages_
47+
48+
> NOTE: To debug your Worker, you must be using the Azure Functions Core Tools version 3.0.3381 or higher
49+
50+
In your worker directory (or your worker's build output directory), run:
51+
```
52+
func host start --dotnet-isolated-debug
53+
```
54+
55+
Core Tools will run targeting your worker and the process will stop with the following message:
56+
57+
```
58+
Azure Functions .NET Worker (PID: <process id>) initialized in debug mode. Waiting for debugger to attach...
59+
```
60+
61+
Where `<process id>` is the ID for your worker process.
62+
63+
At this point, your worker process wil be paused, waiting for the debugger to be attached. You can now use Visual Studio to manually attach to the process (to learn more, see [how to attach to a running process](https://docs.microsoft.com/en-us/visualstudio/debugger/attach-to-running-processes-with-the-visual-studio-debugger?view=vs-2019#BKMK_Attach_to_a_running_process))
64+
65+
Once the debugger is attached, the process execution will resume and you will be able to debug.
5166

5267
**YOU CAN NOT DEBUG DIRECTLY USING "Start Debugging" IN VISUAL STUDIO DIRECTLY.** You need to use the command line as mentioned in the previous **Run the sample locally** part of this readme.
5368

build/Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<MinorProductVersion Condition="$(MinorProductVersion) == ''">0</MinorProductVersion>
77
<PatchProductVersion Condition="$(PatchProductVersion) == ''">0</PatchProductVersion>
88
<VersionPrefix Condition="$(VersionPrefix) == ''">$(MajorProductVersion).$(MinorProductVersion).$(PatchProductVersion)</VersionPrefix>
9-
<VersionSuffix Condition="$(VersionSuffix) == ''">preview5</VersionSuffix>
9+
<VersionSuffix Condition="$(VersionSuffix) == ''"></VersionSuffix>
1010
<IsLocalBuild Condition=" $(IsLocalBuild) == ''">True</IsLocalBuild>
1111
<BuildNumber Condition=" $(IsLocalBuild) == 'True'">local</BuildNumber>
1212
<Version Condition=" '$(BuildNumber)' != '' And $(Version) == ''">$(VersionPrefix)-$(VersionSuffix)-$(BuildNumber)</Version>

build/Extensions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<VersionSuffix Condition="$(VersionSuffix) == ''">preview1</VersionSuffix>
5+
<VersionSuffix Condition="$(VersionSuffix) == ''"></VersionSuffix>
66
</PropertyGroup>
77

88
<Import Project=".\Common.props" />

samples/FunctionApp/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"FunctionApp": {
44
"commandName": "Project",
55
"environmentVariables": {
6-
"DOTNET_STARTUP_HOOKS": "Microsoft.Azure.Functions.Worker"
6+
"DOTNET_STARTUP_HOOKS": "Microsoft.Azure.Functions.Worker.Core"
77
}
88
}
99
}

test/E2ETests/E2EApps/E2EApp/E2EApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<ItemGroup>
3232
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
33-
<PackageReference Condition="$(TestBuild) == 'true'" Include="Microsoft.Azure.Functions.Worker" Version="1.0.0-preview5" />
33+
<PackageReference Condition="$(TestBuild) == 'true'" Include="Microsoft.Azure.Functions.Worker" Version="1.0.0" />
3434
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.0.1-preview5" />
3535
</ItemGroup>
3636
</Project>

test/Sdk.Analyzers.Tests/Sdk.Analyzers.Tests/WebJobsAttributesNotSupportedTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ public static void Run([HttpTrigger(AuthorizationLevel.Anonymous, ""get"")] Http
2929
}
3030
}";
3131
var test = new AnalizerTest();
32+
// TODO: This needs to pull from a local source
3233
test.ReferenceAssemblies = ReferenceAssemblies.Net.Net50.WithPackages(ImmutableArray.Create(
3334
new PackageIdentity("Microsoft.Azure.WebJobs.Extensions", "4.0.1"),
3435
new PackageIdentity("Microsoft.Azure.Functions.Worker", "1.0.0-preview5"),
35-
new PackageIdentity("Microsoft.Azure.Functions.Worker.Sdk", "1.0.0-preview5"),
36+
new PackageIdentity("Microsoft.Azure.Functions.Worker.Sdk", "1.0.1-preview5"),
3637
new PackageIdentity("Microsoft.Azure.Functions.Worker.Extensions.Abstractions", "1.0.0-preview5"),
3738
new PackageIdentity("Microsoft.Azure.Functions.Worker.Extensions.Http", "3.0.12-preview1")));
3839

0 commit comments

Comments
 (0)