Skip to content

Commit

Permalink
Make IsPackable configurable for test project template (#377).
Browse files Browse the repository at this point in the history
  • Loading branch information
tintoy authored and mlorbetske committed Mar 1, 2017
1 parent 6855350 commit 6e1be18
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
Expand Down Expand Up @@ -242,4 +242,7 @@ _Pvt_Extensions
Microsoft.TemplateEngine.VC.db

# Dotnet CLI
.dotnet
.dotnet

# Mac
.DS_Store
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"symbolInfo": {
"Framework": {
"longName": "framework"
},
"EnablePack": {
"longName": "enable-pack"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@
}
],
"defaultValue": "netcoreapp1.1"
}
},
"EnablePack": {
"type": "parameter",
"datatype": "bool",
"defaultValue": "false",
"description": "Whether or not to enable packaging (via (\"dotnet pack\") for the project."
},
},
"primaryOutputs": [ { "path": "Company.TestProject1.csproj" } ]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<TargetFramework Condition="'$(Framework)' != 'netcoreapp1.1'">netcoreapp1.0</TargetFramework>
<TargetFramework Condition="'$(Framework)' == 'netcoreapp1.1'">netcoreapp1.1</TargetFramework>

<IsPackable>false</IsPackable>
<IsPackable Condition="'$(EnablePack)' == 'true'">true</IsPackable>
<IsPackable Condition="'$(EnablePack)' != 'true'">false</IsPackable>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 6e1be18

Please sign in to comment.