@Html.EditorForModel()
@Html.Partial("../Other/../Other/RelativePartial")
@Helpers.Test()
@if (!MvcApplication.IsDebug)
{
@Html.Partial("ExternalPartial");
}
@{
// c# 7 features
(string title, string url) GetTitle() => ("ValueTuple", "`2");
@GetTitle().Item1
}
================================================
FILE: Test.WebApp/Views/Other/RelativePartial.cshtml
================================================
RelativePartial.cshtml
@{
@*
code bellow is a repro case for a Razer parser errors, that were only caught
in RoslynRazorViewEngine but not during precompilation...
to repro use `@foreach` instead of `foreach`
*@
foreach(var x in new []{1,2,3})
{
@:@x,
}
}
================================================
FILE: Test.WebApp/Views/Shared/EditorTemplates/SampleModel.Mobile.cshtml
================================================
@model Test.WebApp.Models.SampleModel
EditorTemplates.Mobile
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
}
================================================
FILE: Test.WebApp.ExternalViews/ExternalViews.cs
================================================
namespace Test.WebApp
{
public class ExternalViews
{
}
}
================================================
FILE: Test.WebApp.ExternalViews/Test.WebApp.ExternalViews.csproj
================================================
LibraryPropertiesTest.WebAppnet462portable{31dfcccc-2f44-405e-a2d7-bb1ac718e7b9}StackExchange.Precompilation.Build{3c0a90f1-b19e-4305-ab71-3cd31c7d0f4d}StackExchange.Precompilation$(SolutionDir)StackExchange.Precompilation.Build\bin\$(Configuration)\$(TargetFramework)\true
================================================
FILE: Test.WebApp.ExternalViews/Views/Shared/ExternalPartial.cshtml
================================================
ExternalPartial.cshtml
================================================
FILE: Test.WebApp.ExternalViews/Views/Shared/ExternalView.cshtml
================================================
ExternalView.cshtml
@{ Html.RenderPartial("ExternalPartial"); }
================================================
FILE: Test.WebApp.ExternalViews/Views/Web.config
================================================
================================================
FILE: appveyor.yml
================================================
version: '{build}'
image: Visual Studio 2017
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: $(semver)
assembly_file_version: $(semver).{build}
assembly_informational_version: '{version}'
init:
- git config --global core.autocrlf input
install:
- ps: >-
set -name semver -scope global -value (get-content .\semver.txt)
$env:semver = $semver
if ("$env:appveyor_repo_tag_name" -ne "releases/$semver") {
$env:package_suffix = "-alpha$env:appveyor_build_number" }
update-appveyorbuild -Version "$env:semver$env:package_suffix"
nuget:
disable_publish_on_pr: true
build_script:
- ps: .\BuildAndPack.ps1 -VersionSuffix "$env:package_suffix" -GitCommitId "$env:appveyor_repo_commit" -MsBuildArgs @(, "/logger:C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll") -CIBuild
skip_branch_with_pr: true
skip_tags: false
skip_commits:
files:
- '**/*.md'
artifacts:
- path: packages/obj/*.nupkg
deploy:
- provider: NuGet
name: alpha
on:
branch: master
server: https://www.myget.org/F/stackoverflow/api/v2
api_key:
secure: P/UHxq2DEs0GI1SoDXDesHjRVsSVgdywz5vmsnhFQQY5aJgO3kP+QfhwfhXz19Rw
symbol_server: https://www.myget.org/F/stackoverflow/symbols/api/v2/package
- provider: NuGet
name: release
on:
appveyor_repo_tag: true
server: https://www.myget.org/F/stackoverflow/api/v2
api_key:
secure: P/UHxq2DEs0GI1SoDXDesHjRVsSVgdywz5vmsnhFQQY5aJgO3kP+QfhwfhXz19Rw
symbol_server: https://www.myget.org/F/stackoverflow/symbols/api/v2/package
================================================
FILE: license.txt
================================================
The MIT License (MIT)
Copyright (c) 2015 Stack Exchange
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
================================================
FILE: semver.txt
================================================
5.1.0