ctaggart / google-cloud-dotnet

Google Cloud Client Library for .NET
https://googlecloudplatform.github.io/google-cloud-dotnet/
Apache License 2.0
0 stars 0 forks source link

Google.Iam.V1.csproj can't find net40 #5

Closed ctaggart closed 7 years ago

ctaggart commented 7 years ago
7>C:\Users\cameron\.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161104-2\buildCrossTargeting\Microsoft.NET.
Sdk.targets(36,5): error : Project 'C:\Users\cameron\cs\google-cloud-dotnet\apis\Google.Iam.V1\Google.Iam.V1\Google
.Iam.V1.csproj' has no target framework compatible with '.NETFramework,Version=v4.0'. [C:\Users\cameron\cs\google-c
loud-dotnet\apis\Google.Iam.V1\Google.Iam.V1\Google.Iam.V1.csproj]

I don't understand that error when:

<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />

  <PropertyGroup>
    <Description>gRPC services for the Google Identity and Access Management API. This library is typically used as a dependency for other API client libraries.</Description>
    <VersionPrefix>1.0.0-beta04</VersionPrefix>
    <TargetFrameworks>net45;netstandard1.5</TargetFrameworks>
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
    <AssemblyName>Google.Iam.V1</AssemblyName>
    <AssemblyOriginatorKeyFile>../../GoogleApis.snk</AssemblyOriginatorKeyFile>
    <SignAssembly>true</SignAssembly>
    <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
    <PackageTags>Google;Cloud;IAM;Identity;Access</PackageTags>
    <PackageIconUrl>https://cloud.google.com/images/gcp-icon-64x64.png</PackageIconUrl>
    <PackageProjectUrl>https://github.com/GoogleCloudPlatform/google-cloud-dotnet</PackageProjectUrl>
    <PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="**\*.cs" />
    <EmbeddedResource Include="**\*.resx" />
    <EmbeddedResource Include="compiler\resources\**\*" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Sdk">
      <Version>1.0.0-alpha-20161104-2</Version>
      <PrivateAssets>All</PrivateAssets>
    </PackageReference>
    <PackageReference Include="NETStandard.Library">
      <Version>1.6.0</Version>
    </PackageReference>
    <PackageReference Include="Google.Api.CommonProtos">
      <Version>1.0.0-beta04</Version>
    </PackageReference>
    <PackageReference Include="Google.Api.Gax.Grpc">
      <Version>1.0.0-beta04</Version>
    </PackageReference>
  </ItemGroup>

  <ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
    <Reference Include="System" />
    <Reference Include="Microsoft.CSharp" />
  </ItemGroup>

  <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
    <DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
  </PropertyGroup>

  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
ctaggart commented 7 years ago

I get that error when I use -f net451. I get this error when I use '-f net45'. Looks like specifying a framework isn't going to work.

     3>C:\Users\cameron\.nuget\packages\microsoft.net.sdk\1.0.0-alpha-20161104-2\buildCrossTargeting\Microsoft.NET.
Sdk.targets(36,5): error : Project 'C:\Users\cameron\cs\google-cloud-dotnet\tools\Google.Cloud.Tools.Common\Google.
Cloud.Tools.Common.csproj' has no target framework compatible with '.NETFramework,Version=v4.5'. [C:\Users\cameron\
cs\google-cloud-dotnet\tools\Google.Cloud.Tools.Common\Google.Cloud.Tools.Common.csproj]