Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] func init created project with netcoreapp3.0 not netcoreapp3.1 #1792

Open
jongio opened this issue Feb 1, 2020 · 2 comments
Open

[v3] func init created project with netcoreapp3.0 not netcoreapp3.1 #1792

jongio opened this issue Feb 1, 2020 · 2 comments
Assignees

Comments

@jongio
Copy link
Member

@jongio jongio commented Feb 1, 2020

Run:

func init jgfn11 --csharp --worker-runtime dotnet

Then:

func new --name func1 --template "Http Trigger"

And you get this in your csproj - shouldn't this be netcoreapp3.1? According to this: https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions

Also shouldn't this use the latest version of the Sdk.Functions SDK, which is 3.0.3.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <AzureFunctionsVersion>v3</AzureFunctionsVersion>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.1" />
  </ItemGroup>
  <ItemGroup>
    <None Update="host.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="local.settings.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
    </None>
  </ItemGroup>
</Project>
C:\blog\jgfn11>func --version
3.0.2106

C:\blog\jgfn11>dotnet --version
3.1.101

C:\blog\jgfn11>node --version
v12.13.0
@msftbot msftbot bot added the Needs: Triage 🔍 label Feb 1, 2020
@jongio jongio changed the title [v3] func init uses netcoreapp3.0 [v3] func init created project with netcoreapp3.0 not netcoreapp3.1 Feb 2, 2020
@ahmelsayed

This comment has been minimized.

Copy link
Contributor

@ahmelsayed ahmelsayed commented Feb 4, 2020

@soninaren can you update the v3 templates in this repo?

@soninaren soninaren added this to the Triaged milestone Feb 4, 2020
@soninaren soninaren modified the milestones: Triaged, Functions Sprint 68 Feb 4, 2020
@soninaren

This comment has been minimized.

Copy link
Contributor

@soninaren soninaren commented Feb 4, 2020

Sure, will update the templates in the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.