Unverified Commit f493fd06 authored by Vinicius Jarina's avatar Vinicius Jarina Committed by GitHub
Browse files

Update nuget (#285)

* Update Nugets

* Updated NuGet packages.

* Renamed NLua.Core.projitems -> NLua.Shared.projitems
parent d0f681dc
<!--
***********************************************************************************************
Microsoft.NET.Test.Sdk.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ProjectCapability Include="TestContainer" />
</ItemGroup>
<PropertyGroup>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
</Project>
<!--
***********************************************************************************************
Microsoft.NET.Test.Sdk.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your test projects from the command-line or the IDE.
Copyright (c) Microsoft. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
============================================================
GenerateProgramFile
Generates Program file which contains the Main entry point
============================================================
-->
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<GeneratedProgramFile Condition="'$(GeneratedProgramFile)' ==''">$(IntermediateOutputPath)$(MSBuildProjectName).Program$(DefaultLanguageSourceExtension)</GeneratedProgramFile>
<GenerateProgramFile Condition="'$(GenerateProgramFile)' == ''">true</GenerateProgramFile>
</PropertyGroup>
<!--
Output type for dotnet core test project should be exe. For full CLR it is Library by default.
This should be added in props file.
Issues: https://github.com/dotnet/roslyn-project-system/issues/268,
https://devdiv.visualstudio.com/DevDiv/_workitems?id=375688&_a=edit
-->
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<OutputType>Exe</OutputType>
</PropertyGroup>
<!--
Generate config file for test project targeting .NET Framework. This config file has binding redirect which is needed at time of running tests.
Added below two lines because msbuild has following check:
https://github.com/Microsoft/msbuild/blob/dd5e8bc3f86ac98bd77d8971b00a6ad14f122f1a/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets#L2027
-->
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<AutoGenerateBindingRedirects Condition="'$(AutoGenerateBindingRedirects)' == ''">true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType Condition="'$(GenerateBindingRedirectsOutputType)' == ''">true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
<!--
Note that this must run before every invocation of CoreCompile to ensure that all
compiler runs see the generated Program file. Furthermore, we must run *after*
PrepareForBuild to ensure that the intermediate directory has been created.
-->
<Target Name="GenerateProgramFile"
BeforeTargets="CoreCompile"
DependsOnTargets="PrepareForBuild;CoreGenerateProgramFile"
Condition="'$(GenerateProgramFile)' == 'true'" />
<Target Name="CoreGenerateProgramFile"
Condition="'$(Language)'=='VB' or '$(Language)'=='C#' or '$(Language)'=='F#'"
Inputs="$(MSBuildAllProjects)"
Outputs="$(GeneratedProgramFile)">
<ItemGroup Condition="'$(Language)'=='C#'">
<Line Include="// &lt;auto-generated&gt; This file has been auto generated. &lt;/auto-generated&gt; "/>
<Line Include="using System%3b "/>
<Line Include="[Microsoft.VisualStudio.TestPlatform.TestSDKAutoGeneratedCode] "/>
<Line Include="class AutoGeneratedProgram {static void Main(string[] args){}}"/>
</ItemGroup>
<ItemGroup Condition="'$(Language)'=='VB'">
<Line Include="' &lt;auto-generated&gt; This file has been auto generated. &lt;/auto-generated&gt; "/>
<Line Include="Imports System"/>
<Line Include="Module AutoGeneratedProgram"/>
<Line Include="&lt;Microsoft.VisualStudio.TestPlatform.TestSDKAutoGeneratedCode&gt; "/>
<Line Include="Sub Main(args As String())"/>
<Line Include="End Sub"/>
<Line Include="End Module"/>
</ItemGroup>
<ItemGroup Condition="'$(Language)'=='F#'">
<Line Include="// &lt;auto-generated&gt; This file has been auto generated. &lt;/auto-generated&gt;"/>
<Line Include="module AutoGeneratedProgram"/>
<Line Include="[&lt;EntryPoint&gt;]"/>
<Line Include="[&lt;Microsoft.VisualStudio.TestPlatform.TestSDKAutoGeneratedCode&gt;]"/>
<Line Include="let main _ = 0"/>
</ItemGroup>
<WriteLinesToFile
File="$(GeneratedProgramFile)" Lines="@(Line)" Overwrite="true" Encoding="Unicode">
</WriteLinesToFile>
<!--
Compile Include the generated Program File
-->
<ItemGroup Condition="'$(Language)'!='F#'">
<Compile Include="$(GeneratedProgramFile)"/>
</ItemGroup>
<ItemGroup Condition="'$(Language)'=='F#'">
<ProgramCompiles Include="@(Compile)" Condition=" '%(Identity)' == 'Program.fs' "/>
<CompileAfter Include="$(GeneratedProgramFile)" Condition="@(ProgramCompiles-&gt;Count()) == 0"/>
</ItemGroup>
<Warning Condition=" @(ProgramCompiles-&gt;Count()) != 0 " Text="A 'Program.fs' file can be automatically generated for F# .NET Core test projects. To fix this warning, either delete the file from the project, or set the &lt;GenerateProgramFile&gt; property to 'false'." />
</Target>
</Project>
<!--
***********************************************************************************************
Microsoft.NET.Test.Sdk.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ProjectCapability Include="TestContainer" />
</ItemGroup>
<PropertyGroup>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
</Project>
<!--
***********************************************************************************************
Microsoft.NET.Test.Sdk.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your test projects from the command-line or the IDE.
Copyright (c) Microsoft. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
============================================================
GenerateProgramFile
Generates Program file which contains the Main entry point
============================================================
-->
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<GeneratedProgramFile Condition="'$(GeneratedProgramFile)' ==''">$(IntermediateOutputPath)$(MSBuildProjectName).Program$(DefaultLanguageSourceExtension)</GeneratedProgramFile>
<GenerateProgramFile Condition="'$(GenerateProgramFile)' == ''">true</GenerateProgramFile>
</PropertyGroup>
<!--
Output type for dotnet core test project should be exe. For full CLR it is Library by default.
This should be added in props file.
Issues: https://github.com/dotnet/roslyn-project-system/issues/268,
https://devdiv.visualstudio.com/DevDiv/_workitems?id=375688&_a=edit
-->
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<OutputType>Exe</OutputType>
</PropertyGroup>
<!--
Generate config file for test project targeting .NET Framework. This config file has binding redirect which is needed at time of running tests.
Added below two lines because msbuild has following check:
https://github.com/Microsoft/msbuild/blob/dd5e8bc3f86ac98bd77d8971b00a6ad14f122f1a/src/XMakeTasks/Microsoft.Common.CurrentVersion.targets#L2027
-->
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
<AutoGenerateBindingRedirects Condition="'$(AutoGenerateBindingRedirects)' == ''">true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType Condition="'$(GenerateBindingRedirectsOutputType)' == ''">true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
<!--
Note that this must run before every invocation of CoreCompile to ensure that all
compiler runs see the generated Program file. Furthermore, we must run *after*
PrepareForBuild to ensure that the intermediate directory has been created.
-->
<Target Name="GenerateProgramFile"
BeforeTargets="CoreCompile"
DependsOnTargets="PrepareForBuild;CoreGenerateProgramFile"
Condition="'$(GenerateProgramFile)' == 'true'" />
<Target Name="CoreGenerateProgramFile"
Condition="'$(Language)'=='VB' or '$(Language)'=='C#' or '$(Language)'=='F#'"
Inputs="$(MSBuildAllProjects)"
Outputs="$(GeneratedProgramFile)">
<ItemGroup Condition="'$(Language)'=='C#'">
<Line Include="// &lt;auto-generated&gt; This file has been auto generated. &lt;/auto-generated&gt; "/>
<Line Include="using System%3b "/>
<Line Include="[Microsoft.VisualStudio.TestPlatform.TestSDKAutoGeneratedCode] "/>
<Line Include="class AutoGeneratedProgram {static void Main(string[] args){}}"/>
</ItemGroup>
<ItemGroup Condition="'$(Language)'=='VB'">
<Line Include="' &lt;auto-generated&gt; This file has been auto generated. &lt;/auto-generated&gt; "/>
<Line Include="Imports System"/>
<Line Include="Module AutoGeneratedProgram"/>
<Line Include="&lt;Microsoft.VisualStudio.TestPlatform.TestSDKAutoGeneratedCode&gt; "/>
<Line Include="Sub Main(args As String())"/>
<Line Include="End Sub"/>
<Line Include="End Module"/>
</ItemGroup>
<ItemGroup Condition="'$(Language)'=='F#'">
<Line Include="// &lt;auto-generated&gt; This file has been auto generated. &lt;/auto-generated&gt;"/>
<Line Include="module AutoGeneratedProgram"/>
<Line Include="[&lt;EntryPoint&gt;]"/>
<Line Include="[&lt;Microsoft.VisualStudio.TestPlatform.TestSDKAutoGeneratedCode&gt;]"/>
<Line Include="let main _ = 0"/>
</ItemGroup>
<WriteLinesToFile
File="$(GeneratedProgramFile)" Lines="@(Line)" Overwrite="true" Encoding="Unicode">
</WriteLinesToFile>
<!--
Compile Include the generated Program File
-->
<ItemGroup Condition="'$(Language)'!='F#'">
<Compile Include="$(GeneratedProgramFile)"/>
</ItemGroup>
<ItemGroup Condition="'$(Language)'=='F#'">
<ProgramCompiles Include="@(Compile)" Condition=" '%(Identity)' == 'Program.fs' "/>
<CompileAfter Include="$(GeneratedProgramFile)" Condition="@(ProgramCompiles-&gt;Count()) == 0"/>
</ItemGroup>
<Warning Condition=" @(ProgramCompiles-&gt;Count()) != 0 " Text="A 'Program.fs' file can be automatically generated for F# .NET Core test projects. To fix this warning, either delete the file from the project, or set the &lt;GenerateProgramFile&gt; property to 'false'." />
</Target>
</Project>
<!--
***********************************************************************************************
Microsoft.NET.Test.Sdk.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ProjectCapability Include="TestContainer" />
</ItemGroup>
<PropertyGroup>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
</Project>
<!--
***********************************************************************************************
Microsoft.NET.Test.Sdk.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ProjectCapability Include="TestContainer" />
</ItemGroup>
<PropertyGroup>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
</Project>
Copyright (c) 2011-2017 Charlie Poole, 2014-2017 Terje Sandstrom Copyright (c) 2011-2019 Charlie Poole, 2014-2019 Terje Sandstrom
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment