* Set DisableImplicitFrameworkReferences for all projects
The SDK added targets which require the assets file when framework reference items are set.
We can disable the implicit FrameworkReference item in order to prevent these from running.
* Don't rely on implicit VB imports
DisableImplicitFrameworkReferences also doubles as DisableImplicitNamespaceImports.
Rather than enable this I think it's better just to stop relying on the default imports.
* Add missing reference to EventLog
Commit migrated from https://github.com/dotnet/corefx/commit/
6653c5fe2adc7c7fca962df3fdc6675354726951
<PropertyGroup>
<!-- Always raise runtime/lib items even for frameworks that may not use them -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
- <!-- Don't reference implicit framework packages, depprojs are meant to be wholy explicit -->
- <DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<!-- We don't need the SDK to validate that we get runtime packages -->
<EnsureRuntimePackageDependencies>false</EnsureRuntimePackageDependencies>
<!-- don't generate netcoreapp files -->
<Reference Include="System.Threading.Tasks" />
<Reference Include="System.Threading.Thread" />
</ItemGroup>
- <ItemGroup Condition="'$(TargetsUap)' == 'true'">
- <!-- UAP is missing default imports -->
- <Import Include="Microsoft.VisualBasic;System;System.Collections;System.Collections.Generic;System.Diagnostics;System.Linq;System.Xml.Linq;System.Threading.Tasks" />
- </ItemGroup>
</Project>
Option Strict On
Option Explicit On
+Imports System
Imports System.ComponentModel
+Imports System.Diagnostics
Imports System.Security
Imports System.Runtime.Versioning
Imports System.Text
' See the LICENSE file in the project root for more information.
Option Strict On
Option Explicit On
+
+Imports System
+Imports System.Collections
Imports System.Collections.Specialized
Imports System.ComponentModel
+Imports System.Diagnostics
Imports System.Globalization
Imports System.Security
Imports System.Runtime.Versioning
Option Explicit On
Option Strict On
+Imports System
Imports System.ComponentModel
Imports System.Globalization
Imports System.Security
' See the LICENSE file in the project root for more information.
Option Strict On
Option Explicit On
+
+Imports System
Imports System.Environment
Imports System.Security
Imports Microsoft.VisualBasic.CompilerServices.Utils
Option Explicit On
Option Strict On
+Imports System
Imports System.ComponentModel
+Imports System.Diagnostics
Imports System.Globalization
Imports System.IO
Imports System.Text
Option Strict On
Option Explicit On
+Imports System
Imports System.Security
Imports System.Runtime.InteropServices
Imports System.Runtime.Versioning
Option Explicit On
Option Strict On
+Imports System
+Imports System.Diagnostics
Imports System.Security
Imports System.Runtime.ConstrainedExecution
Imports System.Runtime.InteropServices
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
+Imports System
Imports System.Security
Imports System.Runtime.InteropServices
Imports System.Runtime.Versioning
Option Explicit On
Option Strict On
+Imports System
Imports System.Runtime.CompilerServices
Imports Xunit
Namespace Microsoft.VisualBasic.Tests.VB
Option Strict On
Imports Microsoft.VisualBasic.FileIO
+Imports System
+Imports System.Collections.Generic
Imports System.Collections.ObjectModel
+Imports System.Linq
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices
Imports System.Text
Option Explicit On
Option Strict On
+Imports System
Imports System.Runtime.CompilerServices
Namespace Microsoft.VisualBasic.Tests.VB
<Compile Include="FileIOTests.vb" />
<Compile Include="TextFieldParserTests.vb" />
</ItemGroup>
- <ItemGroup Condition="'$(TargetsUap)' == 'true'">
- <!-- UAP is missing default imports -->
- <Import Include="Microsoft.VisualBasic;System;System.Collections;System.Collections.Generic;System.Diagnostics;System.Linq;System.Xml.Linq;System.Threading.Tasks" />
- </ItemGroup>
</Project>
Option Explicit On
Option Strict On
+Imports System
Imports System.Environment
Imports Microsoft.VisualBasic.FileIO
Imports Xunit
Option Strict On
Imports Microsoft.VisualBasic.FileIO
+Imports System
Imports Xunit
Namespace Microsoft.VisualBasic.Tests.VB
<ItemGroup Condition="'$(TargetsNetFx)' == 'true'">
<Reference Include="mscorlib" />
<Reference Include="System" />
+ <Reference Include="System.Core" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsNetFx)' != 'true'">
<ProjectReference Include="..\..\System.Security.Principal.Windows\ref\System.Security.Principal.Windows.csproj" />
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsPartialFacadeAssembly Condition="'$(TargetsNetFx)' == 'true'">true</IsPartialFacadeAssembly>
- <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetGroup)' == 'netstandard'">SR.PlatformNotSupported_EventLog</GeneratePlatformNotSupportedAssemblyMessage>
+ <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetsNetStandard)' == 'true'">SR.PlatformNotSupported_EventLog</GeneratePlatformNotSupportedAssemblyMessage>
<!-- Although we have a netstandard configuration, we know we are not currently UAP compatible-->
<UWPCompatible>false</UWPCompatible>
<ProjectGuid>{432779B9-3CBD-4871-A7DC-D8A192319DBD}</ProjectGuid>
<Configurations>net461-Debug;net461-Release;netcoreapp-Windows_NT-Debug;netcoreapp-Windows_NT-Release;netcoreapp2.0-Windows_NT-Debug;netcoreapp2.0-Windows_NT-Release;netfx-Debug;netfx-Release;netstandard-Debug;netstandard-Release</Configurations>
</PropertyGroup>
- <ItemGroup Condition="$(TargetGroup.StartsWith('netcoreapp'))">
+ <ItemGroup Condition="'$(TargetsNetCoreApp)' == 'true'">
<Compile Include="System\Diagnostics\CompModSwitches.cs" />
<Compile Include="System\Diagnostics\EntryWrittenEventArgs.cs" />
<Compile Include="System\Diagnostics\EntryWrittenEventHandler.cs" />
<ItemGroup Condition="'$(TargetsNetFx)' == 'true'">
<Reference Include="mscorlib" />
<Reference Include="System" />
+ <Reference Include="System.Core" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsNetFx)' != 'true'">
<Reference Include="Microsoft.Win32.Primitives" />