zoukankan      html  css  js  c++  java
  • WPF Language/Resources.resx 总是加载不成功

    打开.csproject文件

    把Properties\Resources.Designer.cs相关的东西都删掉,就解决了这个问题了。

    <Compile Include="Properties\Resources.Designer.cs">
    <AutoGen>True</AutoGen>
    <DesignTime>True</DesignTime>
    <DependentUpon>Resources.resx</DependentUpon>
    </Compile>

    <EmbeddedResource Include="Properties\Resources.resx">
    <Generator>ResXFileCodeGenerator</Generator>
    <LastGenOutput>Resources.Designer.cs</LastGenOutput>

    正常只应该有两段就够了。

    <Compile Include="Language\Resources.Designer.cs">
    <DependentUpon>Resources.resx</DependentUpon>
    <AutoGen>True</AutoGen>
    <DesignTime>True</DesignTime>
    </Compile>

    <EmbeddedResource Include="Language\Resources.resx">
    <Generator>ResXFileCodeGenerator</Generator>
    <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    <SubType>Designer</SubType>
    </EmbeddedResource>

  • 相关阅读:
    hdu 2680(最短路)
    hdu 1548(最短路)
    hdu 1596(最短路变形)
    hdu 1546(dijkstra)
    hdu 3790(SPFA)
    hdu 2544(SPFA)
    CodeForces 597B Restaurant
    CodeForces 597A Divisibility
    CodeForces 598E Chocolate Bar
    CodeForces 598D Igor In the Museum
  • 原文地址:https://www.cnblogs.com/mantian/p/2861618.html
Copyright © 2011-2022 走看看