ANAHEIM (AP) — The long-running dispute over the identity of the California Republican party was played out in sharp contrast Thursday, as two rival candidates for governor offered sharply differing views on the future of the GOP during what was their first, and probably only, joint appearance of the primary campaign.

State Assemblyman Tim Donnelly, a tea party favorite, said he sees former U.S. Treasury official Neel Kashkari as an elitist whose big-name supporters like former GOP presidential nominee Mitt Romney represent everything that's wrong with the party. "We need to bring a lot more country into the country club," he said.

The moderate Kashkari sees Donnelly as the kind of candidate who explains why Democrats hold every statewide office in California, and both chambers of the Legislature.

"I think we have very different visions for the Republican Party, and that's what this election comes down to," Kashkari said.

The spirited showdown Thursday on KFI-AM's "John and Ken Show," which was aired live, gave both candidates a chance to make an impression in a race in which Democratic Gov. Jerry Brown has had all the advantages.

The governor was a point of agreement. He was frequently criticized by both candidates as well hosts John Kobylt and Ken Chiampou, who said Brown snubbed an invitation to appear with the Republicans on the show. They used a skeleton, wearing a tie and furry eyebrows, for a stand-in.

The GOP contest pits the moderate Kashkari, a former banker who in the Bush administration helped lead the federal bank bailout, against Donnelly, who is best known for his opposition to gun control and any softening of immigration laws.

Brown, seeking an unprecedented fourth term, has held a commanding edge in polls and fundraising so far. Under California's election rules, all the candidates appear on a single primary ballot, regardless of party, and the top two finishers then advance to the November general election. With Brown appearing well ahead of the field, the fight is for second place on June 3.

As recently as last month, polls found many California voters don't recognize either of Brown's leading rivals. And with Brown in a strong position, state Republican leaders have said they are unlikely to invest time or money in the race.

Lagging in polls and with less than three weeks until the election, Kashkari leveled a series of pointed attacks on Donnelly, suggesting he couldn't beat the Democratic governor after alienating a broad swath of state voters.

Republican voter registration has fallen to 28.5 percent in California, and "if we keep shrinking, we are never going to win another election," Kashkari warned. Democrats hold 43.5 percent of California voter registration.

Donnelly, who has held an edge over Kashkari in voter polls, dismissed the criticism as the desperation of a struggling candidate.

"They only attack you when you are the front-runner," Donnelly said. "The only colors that matter to me are red, white and blue, because those are the colors of freedom."

Donnelly, 48, at first appeared hesitant to criticize Kashkari, even when asked directly to describe his rival's flaws. He eventually belittled Kashkari's string of prominent endorsements and prodded the former banker for voting for President Barack Obama in 2008.

Kashkari, 40, took a more aggressive tack. He argued that a Donnelly proposal that would shift responsibility for issuing concealed weapons permits from local law enforcement agencies to the state Department of Justice could limit gun rights, concentrating power over them to Attorney General Kamala Harris, a Democrat.

The conservative legislator was recently scolded by some leading Republicans after he began trying to link Kashkari, who is Indian-American and Hindu, to Islamic Shariah law. Donnelly has said he was only "asking questions" about his opponent.

Questioned by an audience member, he didn't back away. Donnelly has repeatedly said Kashkari supported Shariah banking code when he was a senior official at the Treasury Department in 2008. On Facebook, Donnelly posted a link to a banking seminar hosted by the department during which Kashkari delivered opening remarks.

"Why would we want to be compliant to anything Shariah?" Donnelly asked.

Kashkari said the seminar involved discussions of business law, with a goal to promote free markets around the world, not advocacy for Shariah banking rules.

"You should be ashamed," he told Donnelly.

Donnelly has a history of controversial remarks. He drew attention in March for a tweet that compared President Barack Obama's gun control policies with those of dictators such as Adolf Hitler and North Korea's Kim Jong Il. In May, he was the lone vote against a bill to ban state-run shops from selling or displaying images of the Confederate flag. Donnelly's supporters argue such positions offer a sharp contrast with Brown.