Giter Club home page Giter Club logo

wpfnewprojectsystemsample's Introduction

Wpf sample application for new Project System

This is a sample WPF application using the new csproj format. Targeting .NET Framework (4.6.2 or higher). It could be used to for porting WPF applications to new csproj format until official support is implemented. Please note that Microsoft is aware of the WPF porting problems and included WPF support of the new csproj format for the upcoming VS 16.0 release according the official roadmap.

It works perfectly well with VS IntelliSense and ReSharper. XAML edit & continue also supported. Basically, it should work in the same way as a regular WPF project, but based on the new Project System. However, there are some issues described below.

It includes following workarounds:

Important issues

Please note that this solution doesn't use two-pass XAML building routine, so if you're referencing any elements by name from code-behind it will require you to compile the solution twice (so it will generate the required .g.cs files in intermediate (obj) folder during the first compilation). The problem was discussed there with a known workaround (which is not incorporated into this repository yet) dotnet/project-system#1467 (comment)

wpfnewprojectsystemsample's People

Contributors

aienabled avatar batzen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wpfnewprojectsystemsample's Issues

My WPF exe will not compile even though wpf class libs do

Error occurred while restoring NuGet packages: The operation failed as details for project Utils.Spec could not be loaded.
1>------ Build started: Project: WeinCadOldImport, Configuration: Release Any CPU ------
1>WeinCadOldImport -> C:\Users\phelan\workspace\weincad.net\WeinCadOldImport\bin\Release\net461\WeinCadOldImport.dll
2>------ Build started: Project: Weingartner.Controls, Configuration: Release Any CPU ------
2>Weingartner.Controls -> C:\Users\phelan\workspace\weincad.net\Weingartner.Controls\bin\Release\net461\Weingartner.Controls.dll
3>------ Build started: Project: WeinCad.Controls, Configuration: Release Any CPU ------
3>WeinCad.Controls -> C:\Users\phelan\workspace\weincad.net\WeinCad.Controls\bin\Release\net461\WeinCad.Controls.dll
4>------ Build started: Project: Weingartner.WeinCad3d, Configuration: Release Any CPU ------
4>Weingartner.WeinCad3d -> C:\Users\phelan\workspace\weincad.net\Weingartner.WeinCad3d\bin\Release\net461\Weingartner.WeinCad3d.dll
5>------ Build started: Project: WeinCad.Plugins, Configuration: Release Any CPU ------
5>WeinCad.Plugins -> C:\Users\phelan\workspace\weincad.net\WeinCad.Plugins\bin\Release\net461\WeinCad.Plugins.dll
6>------ Build started: Project: WeinCad, Configuration: Release Any CPU ------
6>C:\Program Files\dotnet\sdk\2.0.0\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(165,5): 
error : Assets file 'C:\Users\phelan\workspace\weincad.net\WeinCad.Net\obj\project.assets.json' 
doesn't have a target for '.NETFramework,Version=v4.6.1/win7-x86'. 
Ensure that restore has run and that you have included 'net461' in the 
TargetFrameworks for your project. You may also need to include 'win7-x86' in your 
project's RuntimeIdentifiers.
6>Done building project "WeinCad.csproj" -- FAILED.
========== Build: 5 succeeded, 1 failed, 14 up-to-date, 0 skipped ==========

Project file is

<Project Sdk="Microsoft.NET.Sdk">

  <Import Project="$(WPFSupport)" />

  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
    <ApplicationIcon />
    <OutputType Condition="'$(TEAMCITY_VERSION)' != ''">WinExe</OutputType>
    <OutputType Condition="'$(TEAMCITY_VERSION)' == ''">Exe</OutputType>
    <OutputTypeEx Condition="'$(TEAMCITY_VERSION)' != ''">WinExe</OutputTypeEx>
    <OutputTypeEx Condition="'$(TEAMCITY_VERSION)' == ''">Exe</OutputTypeEx>
    <ApplicationIcon>Weinlogo.ico</ApplicationIcon>
    <StartupObject>WeinCad.Net.EntryPoint</StartupObject>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="devDept.Eyeshot" Version="10.0.1097" />
    <PackageReference Include="Expression.Blend.Sdk" Version="1.0.2" />
    <PackageReference Include="FluentValidation" Version="7.1.1" />
    <PackageReference Include="FSharp.Core" Version="4.2.3" />
    <PackageReference Include="Ix-Main" Version="1.2.5" />
    <PackageReference Include="LanguageExt.Core" Version="2.1.23" />
    <PackageReference Include="MahApps.Metro" Version="1.5.0" />
    <PackageReference Include="ManagedEsent" Version="1.9.4" />
    <PackageReference Include="Mono.Cecil" Version="0.9.6.4" />
    <PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
    <PackageReference Include="Ninject" Version="3.2.2.0" />
    <PackageReference Include="reactiveui" Version="8.0.0-alpha0089" />
    <PackageReference Include="reactiveui-events-wpf" Version="8.0.0-alpha0089" />
    <PackageReference Include="Serilog" Version="2.5.0" />
    <PackageReference Include="Serilog.Sinks.File" Version="3.2.0" />
    <PackageReference Include="System.Collections.Immutable" Version="1.4.0" />
    <PackageReference Include="System.ValueTuple" Version="4.4.0" />
    <PackageReference Include="Unofficial.Blend.Interactivity" Version="1.0.0" />
    <PackageReference Include="Weingartner.Exceptional" Version="1.7.4-ci.2" />
    <PackageReference Include="Weingartner.ReactiveUI.Fody" Version="2.3.0-alpha.8" />
    <PackageReference Include="HtmlRenderer.Core" Version="1.5.0.6" />
    <PackageReference Include="HtmlRenderer.WPF" Version="1.5.0.6" />
    <PackageReference Include="OxyPlot.Wpf" Version="1.0.0" />
    <PackageReference Include="OxyPlot.Core" Version="1.0.0" />
    <PackageReference Include="Core.Markdown" Version="0.1.128" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\WeinCad.Plugins\WeinCad.Plugins.csproj" />
  </ItemGroup>


  <ItemGroup>
    <!-- App.xaml -->
    <Page Remove="App.xaml" />
    <ApplicationDefinition Include="App.xaml" SubType="Designer" Generator="MSBuild:Compile" />
  </ItemGroup>

  <!-- 
       This is a simple workaround for issue with ReSharper when it reports 
       "Field is already used" because including intermediate files into it's project model.
       Unfortunately $(IntermediateOutputPath) doesn't work here.
       If you're not using ReSharper you can safely remove this section.
  -->

  <ItemGroup>
    <Compile Remove="obj\**" />
  </ItemGroup>


</Project>

Properties Resources and Settings are not nested

This looks really promising and I'm trying to use it. One thing I found is that resources and settings are not nested by default. I had to add the following lines to my csprojs but maybe you can include this in the base templates somehow.

    <!-- Resources -->
    <EmbeddedResource Update="Properties\Resources.resx" Generator="ResXFileCodeGenerator" LastGenOutput="Resources.Designer.cs" />
    <Compile Update="Properties\Resources.Designer.cs" AutoGen="True" DependentUpon="Resources.resx" DesignTime="True" />

    <!-- Settings -->
    <None Update="Properties\Settings.settings" Generator="SettingsSingleFileGenerator" LastGenOutput="Settings.Designer.cs" />
    <Compile Update="Properties\Settings.Designer.cs" AutoGen="True" DependentUpon="Settings.settings" />

Errors are ( sometimes not listed )

I have the following project

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup Label="Globals">
    <CustomProjectExtensionsPath>$(SolutionDir)\WpfNetStandardSample\CustomProjectSystem\</CustomProjectExtensionsPath>
  </PropertyGroup>

  <Import Project="$(CustomProjectExtensionsPath)CustomProject.props" />

  <PropertyGroup>
    <TargetFramework>net461</TargetFramework>
    <AssemblyName>ReactiveUI.Ext</AssemblyName>
    <RootNamespace>ReactiveUI.Ext</RootNamespace>
  </PropertyGroup>

  <ItemGroup>
    <Reference Include="PresentationCore" />
    <Reference Include="PresentationFramework" />
    <Reference Include="System.Xaml" />
    <Reference Include="WindowsBase" />
    <Reference Include="System.Windows.Forms" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="devDept.Eyeshot" Version="10.0.1097" />
    <PackageReference Include="Expression.Blend.Sdk" Version="1.0.2" />
    <PackageReference Include="FluentValidation" Version="7.1.1" />
    <PackageReference Include="FSharp.Core" Version="4.2.3" />
    <PackageReference Include="Ix-Main" Version="1.2.5" />
    <PackageReference Include="LanguageExt.Core" Version="1.7.38" />
    <PackageReference Include="MahApps.Metro" Version="1.5.0" />
    <PackageReference Include="ManagedEsent" Version="1.9.4" />
    <PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
    <PackageReference Include="Ninject" Version="3.2.2.0" />
    <PackageReference Include="reactiveui" Version="7.4.0" />
    <PackageReference Include="ReactiveUI.Fody" Version="2.2.11" />
    <PackageReference Include="reactiveui-core" Version="7.4.0" />
    <PackageReference Include="reactiveui-events" Version="7.3.0" />
    <PackageReference Include="Rx-XAML" Version="2.3.0-beta2" />
    <PackageReference Include="Serilog" Version="2.5.0" />
    <PackageReference Include="System.Collections.Immutable" Version="1.4.0" />
    <PackageReference Include="System.ValueTuple" Version="4.4.0" />
    <PackageReference Include="Unofficial.Blend.Interactivity" Version="1.0.0" />
    <PackageReference Include="Weingartner.Exceptional" Version="1.7.3" />
    <PackageReference Include="Mono.Cecil" Version="0.9.6.4" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\Lens\Lens.csproj" />
    <ProjectReference Include="..\Utils\Utils.csproj" />
    <ProjectReference Include="..\Weingartner.WPF\Weingartner.Wpf.Common\Weingartner.Wpf.Common.csproj" />
  </ItemGroup>

  <!-- 
       This is a simple workaround for issue with ReSharper when it reports 
       "Field is already used" because including intermediate files into it's project model.
       Unfortunately $(IntermediateOutputPath) doesn't work here.
       If you're not using ReSharper you can safely remove this section.
  -->

  <ItemGroup>
    <Compile Remove="obj\**" />
  </ItemGroup>
</Project>

and the output from the compiler is

Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Users\phelan\workspace\WeinCAD.NET\Lens\obj\project.assets.json
Restore completed in 13.82 ms for C:\Users\phelan\workspace\WeinCAD.NET\Lens\Lens.csproj.
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Users\phelan\workspace\WeinCAD.NET\ReactiveUI.Ext\obj\project.assets.json
Restore completed in 16.09 ms for C:\Users\phelan\workspace\WeinCAD.NET\ReactiveUI.Ext\ReactiveUI.Ext.csproj.
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Users\phelan\workspace\WeinCAD.NET\Lens.Spec\obj\project.assets.json
Restore completed in 17.2 ms for C:\Users\phelan\workspace\WeinCAD.NET\Lens.Spec\Lens.Spec.csproj.
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Users\phelan\workspace\WeinCAD.NET\Math\obj\project.assets.json
Committing restore...
Restore completed in 19.23 ms for C:\Users\phelan\workspace\WeinCAD.NET\Math\Numerics.csproj.
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Users\phelan\workspace\WeinCAD.NET\Utils\obj\project.assets.json
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Users\phelan\workspace\WeinCAD.NET\LaserHelpers\obj\project.assets.json
Restore completed in 3.72 ms for C:\Users\phelan\workspace\WeinCAD.NET\Utils\Utils.csproj.
Assets file has not changed. Skipping assets file writing. Path: C:\Users\phelan\workspace\WeinCAD.NET\SpecHelper\obj\project.assets.json
Restore completed in 19.67 ms for C:\Users\phelan\workspace\WeinCAD.NET\LaserHelpers\LaserHelpers.csproj.
Restore completed in 19.73 ms for C:\Users\phelan\workspace\WeinCAD.NET\SpecHelper\SpecHelper.csproj.
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Users\phelan\workspace\WeinCAD.NET\ReactiveUI.Ext.Spec\obj\project.assets.json
Restore completed in 8.8 ms for C:\Users\phelan\workspace\WeinCAD.NET\ReactiveUI.Ext.Spec\ReactiveUI.Ext.Spec.csproj.
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Users\phelan\workspace\WeinCAD.NET\Math.Spec\obj\project.assets.json
Restore completed in 22.88 ms for C:\Users\phelan\workspace\WeinCAD.NET\Math.Spec\Numerics.Spec.csproj.
1>------ Build started: Project: ReactiveUI.Ext, Configuration: Debug Any CPU ------
1>Target _HandlePackageFileConflicts:
1>  Encountered conflict between 'Reference:C:\Users\phelan\.nuget\packages\expression.blend.sdk\1.0.2\lib\net45\System.Windows.Interactivity.dll' and 'Reference:C:\Users\phelan\.nuget\packages\mahapps.metro\1.5.0\lib\net45\System.Windows.Interactivity.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'Reference:C:\Users\phelan\.nuget\packages\expression.blend.sdk\1.0.2\lib\net45\System.Windows.Interactivity.dll' and 'Reference:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\System.Windows.Interactivity.dll'.  Choosing 'Reference:C:\Users\phelan\.nuget\packages\expression.blend.sdk\1.0.2\lib\net45\System.Windows.Interactivity.dll' because file version '3.0.40218.0' is greater than '3.0.30810.0'.
1>  Encountered conflict between 'Reference:C:\Users\phelan\.nuget\packages\system.valuetuple\4.4.0\ref\net461\System.ValueTuple.dll' and 'Reference:C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\\net461\ref\System.ValueTuple.dll'.  Choosing 'Reference:C:\Users\phelan\.nuget\packages\system.valuetuple\4.4.0\ref\net461\System.ValueTuple.dll' because file version '4.6.25519.3' is greater than '4.6.25514.4'.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\expression.blend.sdk\1.0.2\lib\net45\System.Windows.Interactivity.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\mahapps.metro\1.5.0\lib\net45\System.Windows.Interactivity.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\expression.blend.sdk\1.0.2\lib\net45\System.Windows.Interactivity.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\System.Windows.Interactivity.dll'.  Choosing 'CopyLocal:C:\Users\phelan\.nuget\packages\expression.blend.sdk\1.0.2\lib\net45\System.Windows.Interactivity.dll' because file version '3.0.40218.0' is greater than '3.0.30810.0'.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\Microsoft.Expression.Interactions.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\en\Microsoft.Expression.Interactions.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\System.Windows.Interactivity.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\en\System.Windows.Interactivity.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\Microsoft.Expression.Interactions.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\es\Microsoft.Expression.Interactions.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\System.Windows.Interactivity.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\es\System.Windows.Interactivity.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\Microsoft.Expression.Interactions.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\fr\Microsoft.Expression.Interactions.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\System.Windows.Interactivity.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\fr\System.Windows.Interactivity.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\Microsoft.Expression.Interactions.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\it\Microsoft.Expression.Interactions.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\System.Windows.Interactivity.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\it\System.Windows.Interactivity.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\Microsoft.Expression.Interactions.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\ja\Microsoft.Expression.Interactions.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\System.Windows.Interactivity.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\ja\System.Windows.Interactivity.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\Microsoft.Expression.Interactions.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\ko\Microsoft.Expression.Interactions.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\System.Windows.Interactivity.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\ko\System.Windows.Interactivity.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\Microsoft.Expression.Interactions.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\ru\Microsoft.Expression.Interactions.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\System.Windows.Interactivity.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\ru\System.Windows.Interactivity.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\Microsoft.Expression.Interactions.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\zh-Hans\Microsoft.Expression.Interactions.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\System.Windows.Interactivity.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\zh-Hans\System.Windows.Interactivity.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\Microsoft.Expression.Interactions.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\zh-Hant\Microsoft.Expression.Interactions.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\de\System.Windows.Interactivity.resources.dll' and 'CopyLocal:C:\Users\phelan\.nuget\packages\unofficial.blend.interactivity\1.0.0\lib\net45\zh-Hant\System.Windows.Interactivity.resources.dll'.  Could not determine winner due to equal file and assembly versions.
1>  Encountered conflict between 'CopyLocal:C:\Users\phelan\.nuget\packages\system.valuetuple\4.4.0\lib\net461\System.ValueTuple.dll' and 'CopyLocal:C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\\net461\lib\System.ValueTuple.dll'.  Choosing 'CopyLocal:C:\Users\phelan\.nuget\packages\system.valuetuple\4.4.0\lib\net461\System.ValueTuple.dll' because file version '4.6.25519.3' is greater than '4.6.25514.4'.
1>Target GenerateTemporaryTargetAssembly:
1>  Target CoreCompile:
1>    Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn
1>    Logging\SerilogExtensions.cs(37,33,37,37): error CS1061: 'LoggerSinkConfiguration' does not contain a definition for 'File' and no extension method 'File' accepting a first argument of type 'LoggerSinkConfiguration' could be found (are you missing a using directive or an assembly reference?)
1>  Done building target "CoreCompile" in project "futhp5ap.tmp_proj" -- FAILED.
1>
1>  Done building project "futhp5ap.tmp_proj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 5 up-to-date, 0 skipped ==========

with the source of the error being a missing reference. Specifically

<PackageReference Include="Serilog.Sinks.File" Version="3.2.0" />

but the errors windows does not collect the error withregards to Logging\SerilogExtensions even though the build failed.

image

Is this fixible?

BTW ( awsome project ) I was looking for a way to convert XAML projects to the new format. :)

Including a ref to this project makes certain other files dissapear

I have the following code in my project file

  <PropertyGroup Label="MultilingualAppToolkit">
    <MultilingualAppToolkitVersion>4.0</MultilingualAppToolkitVersion>
    <MultilingualFallbackLanguage>en</MultilingualFallbackLanguage>
  </PropertyGroup>
  <ItemGroup>
    <XliffResource Include="**\*.xlf" />
  </ItemGroup>

without a reference to the WPF support supplied in this library it works. With a reference none of the xlf files show up in the solution browser.

Any idea why that may be?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.