Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Przykładowy komunikat
error XA4243: Attribute 'JavaVersion' is required when using 'JavaArtifact' for 'ProjectReference' item '../ReferenceProject.csproj'.
Problematyka
The referenced MSBuild item XML specifies an attribute that makes an additional attribute required.
For example, using the JavaArtifact attribute on a <ProjectReference> requires JavaVersion to also be specified.
Nieprawidłowy:
<ItemGroup>
<ProjectReference Include="../ReferenceProject.csproj" JavaArtifact="com.example:mylib" />
</ItemGroup>
Rozwiązanie
To resolve this error, specify the required XML attribute:
<ItemGroup>
<ProjectReference Include="../ReferenceProject.csproj" JavaArtifact="com.example:mylib" JavaVersion="1.0.0" />
</ItemGroup>