question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot build project

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (17 by maintainers)

github_iconTop GitHub Comments

4reactions
tibor19commented, Jun 20, 2019

Hi @BradBarnich,

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

0reactions
BradBarnichcommented, Jun 21, 2019

Yeah, I think that worked too

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot build C# project in Visual Studio
I cloned the git repository, double clicked on devtools/devtools.csproj then Debug -> Start Debugging but I get an error about not being able...
Read more >
VS2019 can't build any project
I have just installed VS2019 Version 16.7.4. I can't compile any c# project (WinForms, WPF and Console application ). There is output :...
Read more >
Why Doesn't My Visual Studio Solution Build? A ...
It could be one of your low level library projects that is failing to build and causing all other projects to fail. Rebuild...
Read more >
IDEA can't build project because it can't find some classes
I am experiencing issues building my project with the latest Beta. IDEA is complaining that it does not find some classes (from my...
Read more >
Can't build C# project in my Visual Studio?
I am trying to build a C# project but I don't see any build option in my Visual Studio IDE. version 2019.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found