CoreWCF: Cannot build project

I downloaded the source and try to build the project so I experiment with the libraries. Building the solution or a single project failed with this error log:

1>------ Build started: Project: CoreWCF.Primitives, Configuration: Debug Any CPU ------
1>Resource File Name = C:\Projects\CoreWCF\src\CoreWCF.Primitives\src/Resources/Strings.resx
1>C:\Projects\CoreWCF\src\Common\src\CoreWCF\ProtocolExceptionHelper.cs(18,48,18,76): error CS0117: 'SR' does not contain a definition for 'ReceiveShutdownReturnedFault'
1>C:\Projects\CoreWCF\src\Common\src\CoreWCF\ProtocolExceptionHelper.cs(23,48,23,81): error CS0117: 'SR' does not contain a definition for 'ReceiveShutdownReturnedLargeFault'
1>C:\Projects\CoreWCF\src\Common\src\CoreWCF\ProtocolExceptionHelper.cs(29,44,29,74): error CS0117: 'SR' does not contain a definition for 'ReceiveShutdownReturnedMessage'
1>CoreWCF\Channels\AddressHeader.cs(115,109,115,131): error CS0117: 'SR' does not contain a definition for 'ExpectedElementMissing'
1>CoreWCF\Dispatcher\XmlSerializerOperationFormatter.cs(29,118,29,143): error CS0117: 'SR' does not contain a definition for 'SFxDocEncodedNotSupported'
1>CoreWCF\Collections\Generic\KeyedByTypeCollection.cs(106,105,106,123): error CS0117: 'SR' does not contain a definition for 'DuplicateBehavior1'
1>CoreWCF\Collections\Generic\SynchronizedCollection.cs(84,66,84,84): error CS0117: 'SR' does not contain a definition for 'ValueMustBeInRange'
1>CoreWCF\XmlUtil.cs(25,95,25,118): error CS0117: 'SR' does not contain a definition for 'XmlLangAttributeMissing'
1>CoreWCF\Dispatcher\EndpointDispatcher.cs(19,13,19,22): warning CS0649: Field 'EndpointDispatcher.listenUri' is never assigned to, and will always have its default value null
1>CoreWCF\Dispatcher\DuplexChannelBinder.cs(17,33,17,43): warning CS0649: Field 'DuplexChannelBinder.correlator' is never assigned to, and will always have its default value null
1>CoreWCF\Dispatcher\ChannelDispatcher.cs(35,14,35,21): warning CS0169: The field 'ChannelDispatcher.session' is never used
1>CoreWCF\ServiceHostBase.cs(36,13,36,22): warning CS0169: The field 'ServiceHostBase.busyCount' is never used
1>CoreWCF\Dispatcher\ChannelDispatcher.cs(41,14,41,38): warning CS0169: The field 'ChannelDispatcher.performDefaultCloseInput' is never used
1>CoreWCF\ServiceHostBase.cs(39,68,39,90): warning CS0067: The event 'ServiceHostBase.UnknownMessageReceived' is never used
1>CoreWCF\Dispatcher\ChannelDispatcher.cs(23,25,23,29): warning CS0649: Field 'ChannelDispatcher.host' is never assigned to, and will always have its default value null
1>CoreWCF\Dispatcher\ChannelDispatcher.cs(19,55,19,67): warning CS0649: Field 'ChannelDispatcher.addressTable' is never assigned to, and will always have its default value null
1>CoreWCF\ServiceHostBase.cs(32,28,32,47): warning CS0169: The field 'ServiceHostBase.readOnlyCredentials' is never used
1>CoreWCF\ServiceHostBase.cs(35,82,35,106): warning CS0169: The field 'ServiceHostBase.endpointsByListenUriInfo' is never used
1>CoreWCF\Dispatcher\ChannelDispatcher.cs(40,18,40,36): warning CS0169: The field 'ChannelDispatcher.transactionTimeout' is never used
1>CoreWCF\Description\ServiceDescription.cs(18,50,18,71): warning CS0169: The field 'ServiceDescription._implementedContracts' is never used
1>CoreWCF\Dispatcher\DispatchRuntime.cs(51,14,51,29): warning CS0649: Field 'DispatchRuntime.preserveMessage' is never assigned to, and will always have its default value false
1>CoreWCF\Description\ServiceDescription.cs(19,37,19,56): warning CS0169: The field 'ServiceDescription._reflectedContracts' is never used
1>CoreWCF\Channels\StreamSecurityUpgradeAcceptorBase.cs(13,14,13,30): warning CS0649: Field 'StreamSecurityUpgradeAcceptorBase.securityUpgraded' is never assigned to, and will always have its default value false
1>CoreWCF\Channels\ServiceChannel.cs(25,36,25,53): warning CS0649: Field 'ServiceChannel.channelDispatcher' is never assigned to, and will always have its default value null
1>CoreWCF\ServiceHostObjectModel.cs(15,26,15,44): warning CS0169: The field 'ServiceHostObjectModel<TService>._singletonInstance' is never used
1>Done building project "CoreWCF.Primitives.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

There are a lot more ‘‘SR’ does not contain a definition for ‘X’’ messages, for readability I removed most of them.

I’ve noticed the .props and .targets files in the root of the project, but I’m not familiar with those files and can’t find where those files are used.

Any chance you could explain how I could build the project?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (17 by maintainers)

Most upvoted comments

Hi @BradBarnich,

What happens if you change that line to
<ResourceStringItems Include=“$(ResourceFileContents.Split(‘%0d%0a’))”/>`