FSharpTests.Directory.Build.targets 1.6 KB
Newer Older
1 2
<Project>

3
    <UsingTask TaskName="Fsi" AssemblyFile="$(FSharpBuildAssemblyFile)" />
4

5 6 7 8 9 10 11 12 13 14 15
    <Target
        Name="RunFSharpScript"
        Returns=""
        DependsOnTargets="$(CoreCompileDependsOn)"
    >
        <Fsi  Condition=" '%(_CoreCompileResourceInputs.WithCulture)' != 'true' "
              CodePage="$(CodePage)"
              DefineConstants="$(DefineConstants)"
              DisabledWarnings="$(NoWarn)"
              DotnetFsiCompilerPath="$(DotnetFsiCompilerPath)"
              FsiExec="@(FsiExec)"
K
Kevin Ransom 已提交
16
              LangVersion="$(LangVersion)"
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
              LCID="$(LCID)"
              LoadSources="@(LoadSource)"
              NoFramework="false"
              Optimize="$(Optimize)"
              OtherFlags="$(OtherFlags)"
              PreferredUILang="$(PreferredUILang)"
              ProvideCommandLineArgs="$(ProvideCommandLineArgs)"
              UseSources="@(UseSource)"
              SkipCompilerExecution="$(SkipCompilerExecution)"
              Sources="@(CompileBefore);@(Compile);@(CompileAfter)"
              Tailcalls="$(Tailcalls)"
              TargetProfile="$(TargetProfile)"
              ToolExe="$(FsiToolExe)"
              ToolPath="$(FsiToolPath)"
              TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
              Utf8Output="$(Utf8Output)"
              WarningLevel="$(WarningLevel)"
              WarningsAsErrors="$(WarningsAsErrors)">
          <Output TaskParameter="CommandLineArgs" ItemName="FsiCommandLineArgs" />
        </Fsi>
37

38 39 40 41
        <ItemGroup>
            <_CoreCompileResourceInputs Remove="@(_CoreCompileResourceInputs)" />
        </ItemGroup>
    </Target>
42
</Project>