Skip to content

Commit

Permalink
Merge pull request #942 from TimLariviere/add-vswin-templates
Browse files Browse the repository at this point in the history
Add templates compatible with VS Windows
  • Loading branch information
TimLariviere authored Jun 2, 2022
2 parents d302b35 + 00a2632 commit 20c5e42
Show file tree
Hide file tree
Showing 48 changed files with 1,931 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: dotnet test --no-build --configuration Release ${SLN_FILE}
- name: Pack
run: |
sed -i bak "s/FABULOUS_PKG_VERSION/2.0.0-nightly-${GITHUB_RUN_ID}/g" "templates/content/blank/.template.config/template.json"
sed -i bak "s/FABULOUS_PKG_VERSION/2.0.1-nightly-${GITHUB_RUN_ID}/g" "templates/content/*/.template.config/template.json"
dotnet pack --configuration Release --output nupkgs --version-suffix "nightly-${GITHUB_RUN_ID}" ${SLN_FILE}
dotnet pack -p:IsNightlyBuild=true --configuration Release --output nupkgs --version-suffix "nightly-${GITHUB_RUN_ID}" templates/Fabulous.XamarinForms.Templates.proj
- name: Push
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
run: dotnet test --no-build --configuration Release ${SLN_FILE}
- name: Pack
run: |
sed -i bak "s/FABULOUS_PKG_VERSION/${MAJOR}.${MINOR}.${PATCH}/g" "templates/content/blank/.template.config/template.json"
sed -i bak "s/FABULOUS_PKG_VERSION/${MAJOR}.${MINOR}.${PATCH}/g" "templates/content/*/.template.config/template.json"
dotnet pack --configuration Release --output nupkgs ${SLN_FILE}
dotnet pack --configuration Release --output nupkgs templates/Fabulous.XamarinForms.Templates.proj
- name: Push
run: |
dotnet nuget push "nupkgs/*.nupkg" -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate
# - name: Push
# run: |
# dotnet nuget push "nupkgs/*.nupkg" -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate
2 changes: 2 additions & 0 deletions docs/content/en/v2/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ Now, we can create the solution using the newly installed template:
dotnet new fabulous-xf -n FabHelloWorld
```

_Note: if you plan to use Visual Studio on Windows, use `fabulous-xf-vswin` instead. Visual Studio doesn't support the default template._

### Build and run

In your IDE, you will be able to choose the configuration profile, the project to start and the device or simulator to use.
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.XamarinForms/Fabulous.XamarinForms.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PackageReadmeFile>PackageREADME.md</PackageReadmeFile>
<PackageIcon>nuget-icon.png</PackageIcon>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<VersionPrefix>2.0.0</VersionPrefix>
<VersionPrefix>2.0.1</VersionPrefix>
<RepositoryUrl>https://github.com/fsprojects/Fabulous</RepositoryUrl>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous/Fabulous.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PackageReadmeFile>PackageREADME.md</PackageReadmeFile>
<PackageIcon>nuget-icon.png</PackageIcon>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<VersionPrefix>2.0.0</VersionPrefix>
<VersionPrefix>2.0.1</VersionPrefix>
<RepositoryUrl>https://github.com/fsprojects/Fabulous</RepositoryUrl>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion templates/Fabulous.XamarinForms.Templates.proj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<!-- https://github.com/dotnet/templating/issues/2350#issuecomment-610431461 -->
<NoDefaultExcludes>true</NoDefaultExcludes>
<VersionPrefix>2.0.0</VersionPrefix>
<VersionPrefix>2.0.1</VersionPrefix>
<NoWarn>$(NoWarn);NU5128</NoWarn>
</PropertyGroup>
<PropertyGroup>
Expand Down
Loading

0 comments on commit 20c5e42

Please sign in to comment.